Fix php upgrade
This commit is contained in:
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
#### Changed
|
||||
|
||||
- Moving package configuration in a new plugin stack_pref.py
|
||||
- Set WordOps backend password length from 16 to 24
|
||||
|
||||
### v3.9.7 - 2019-08-02
|
||||
|
||||
|
||||
@@ -412,16 +412,16 @@ def post_pref(self, apt_packages, packages):
|
||||
out=wo_nginx)
|
||||
wo_nginx.close()
|
||||
|
||||
passwd = ''.join([random.choice
|
||||
randompass = ''.join([random.choice
|
||||
(string.ascii_letters + string.digits)
|
||||
for n in range(16)])
|
||||
for n in range(24)])
|
||||
try:
|
||||
WOShellExec.cmd_exec(self, "printf \"WordOps:"
|
||||
"$(openssl passwd -crypt "
|
||||
"{password} 2> /dev/null)\n\""
|
||||
"> /etc/nginx/htpasswd-wo "
|
||||
"2>/dev/null"
|
||||
.format(password=passwd))
|
||||
.format(password=randompass))
|
||||
except CommandExecutionError as e:
|
||||
Log.debug(self, "{0}".format(e))
|
||||
Log.error(self, "Failed to save HTTP Auth")
|
||||
|
||||
Reference in New Issue
Block a user