reformat code

*  add security stack for futur usage
* fix pep8 formatting issues
This commit is contained in:
VirtuBox
2019-04-29 00:45:02 +02:00
parent 8a29383ea8
commit 264d014c5d
7 changed files with 15 additions and 10 deletions

View File

@@ -697,7 +697,9 @@ def sitebackup(self, data):
if data['wo_db_name']:
Log.info(self, 'Backing up database \t\t', end='')
try:
if not WOShellExec.cmd_exec(self, "mysqldump --single-transaction {0} | pigz -9 -p\"$(nproc)\" > {1}/{0}.gz"
if not WOShellExec.cmd_exec(self, "mysqldump --single-transaction "
"{0} | pigz -9 -p\"$(nproc)\" "
"> {1}/{0}.gz"
.format(data['wo_db_name'],
backup_path)):
Log.info(self,

View File

@@ -1159,7 +1159,7 @@ class WOStackController(CementBaseController):
WOFileUtils.searchreplace(self, "{0}22222/htdocs/index.php"
.format(WOVariables.wo_webroot),
"eth0",
"{0}".format(WOVariables.wo_wan_interface))
"{0}".format(WOVariables.wo_wan))
Log.debug(self, "Setting Privileges to "
"{0}22222/htdocs"