Set php 7.4 as default php version
* `wo stack install` will check php version to install in /etc/wo/wo.conf
This commit is contained in:
@@ -810,11 +810,11 @@ 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} | zstd -T0 -c"
|
||||
"> {1}/{0}.zst"
|
||||
.format(data['wo_db_name'],
|
||||
backup_path)):
|
||||
if not WOShellExec.cmd_exec(
|
||||
self, "mysqldump --single-transaction --hex-blob "
|
||||
"{0} | zstd -T0 -c > {1}/{0}.zst"
|
||||
.format(data['wo_db_name'],
|
||||
backup_path)):
|
||||
Log.info(self,
|
||||
"[" + Log.ENDC + Log.FAIL + "Fail" + Log.OKBLUE + "]")
|
||||
raise SiteError("mysqldump failed to backup database")
|
||||
|
||||
Reference in New Issue
Block a user