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
|
#### 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
|
||||||
|
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user