Fix php upgrade

This commit is contained in:
VirtuBox
2019-08-05 12:25:00 +02:00
parent e84fed489e
commit 915b3f41f8
2 changed files with 288 additions and 287 deletions

View File

@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
#### Changed #### Changed
- Moving package configuration in a new plugin stack_pref.py - 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 ### v3.9.7 - 2019-08-02

View File

@@ -412,16 +412,16 @@ def post_pref(self, apt_packages, packages):
out=wo_nginx) out=wo_nginx)
wo_nginx.close() wo_nginx.close()
passwd = ''.join([random.choice randompass = ''.join([random.choice
(string.ascii_letters + string.digits) (string.ascii_letters + string.digits)
for n in range(16)]) for n in range(24)])
try: try:
WOShellExec.cmd_exec(self, "printf \"WordOps:" WOShellExec.cmd_exec(self, "printf \"WordOps:"
"$(openssl passwd -crypt " "$(openssl passwd -crypt "
"{password} 2> /dev/null)\n\"" "{password} 2> /dev/null)\n\""
"> /etc/nginx/htpasswd-wo " "> /etc/nginx/htpasswd-wo "
"2>/dev/null" "2>/dev/null"
.format(password=passwd)) .format(password=randompass))
except CommandExecutionError as e: except CommandExecutionError as e:
Log.debug(self, "{0}".format(e)) Log.debug(self, "{0}".format(e))
Log.error(self, "Failed to save HTTP Auth") Log.error(self, "Failed to save HTTP Auth")