mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
up
This commit is contained in:
@@ -20,6 +20,7 @@ sys.path.append(chdir + '/class/core')
|
||||
import mw
|
||||
import db
|
||||
import time
|
||||
import re
|
||||
|
||||
|
||||
class backupTools:
|
||||
@@ -45,7 +46,6 @@ class backupTools:
|
||||
filename = backup_path + "/db_" + name + "_" + \
|
||||
time.strftime('%Y%m%d_%H%M%S', time.localtime()) + ".sql.gz"
|
||||
|
||||
import re
|
||||
mysql_root = mw.M('config').dbPos(db_path, db_name).where(
|
||||
"id=?", (1,)).getField('mysql_root')
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ APT_INSTALL()
|
||||
|
||||
wget -O /tmp/mysql-server_${SUFFIX_NAME}.deb-bundle.tar https://cdn.mysql.com/archives/mysql-8.0/mysql-server_${SUFFIX_NAME}.deb-bundle.tar
|
||||
chmod +x /tmp/mysql-server_${SUFFIX_NAME}.deb-bundle.tar
|
||||
tar vxf /tmp/mysql-server_${SUFFIX_NAME}.deb-bundle.tar
|
||||
cd /tmp && tar vxf /tmp/mysql-server_${SUFFIX_NAME}.deb-bundle.tar
|
||||
|
||||
apt update -y
|
||||
apt install -y libnuma1 libaio1 libmecab2
|
||||
|
||||
Reference in New Issue
Block a user