mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:59:25 +08:00
update
This commit is contained in:
@@ -423,6 +423,12 @@ def updateDelta():
|
||||
|
||||
return ''
|
||||
|
||||
def installPreInspection():
|
||||
data = mw.execShell('arch')
|
||||
if data[0].strip().startswith('aarch'):
|
||||
return '不支持aarch架构'
|
||||
return 'ok'
|
||||
|
||||
if __name__ == "__main__":
|
||||
func = sys.argv[1]
|
||||
if func == 'status':
|
||||
@@ -443,6 +449,8 @@ if __name__ == "__main__":
|
||||
print(initdInstall())
|
||||
elif func == 'initd_uninstall':
|
||||
print(initdUinstall())
|
||||
elif func == 'install_pre_inspection':
|
||||
print(installPreInspection(version))
|
||||
elif func == 'conf':
|
||||
print(getConf())
|
||||
elif func == 'config_tpl':
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"shell": "install.sh",
|
||||
"versions":["3.1.1","3.2.1","3.3.1","3.4.1","3.5.1","3.6.1","3.7.1"],
|
||||
"tip": "soft",
|
||||
"install_pre_inspection":true,
|
||||
"checks": "server/sphinx",
|
||||
"path": "server/sphinx",
|
||||
"display": 1,
|
||||
|
||||
Reference in New Issue
Block a user