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:
VirtuBox
2020-11-07 21:06:26 +01:00
parent c8a70deb8d
commit 78cd626d75
2 changed files with 17 additions and 7 deletions

View File

@@ -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")