reformat code
* add security stack for futur usage * fix pep8 formatting issues
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user