This commit is contained in:
Mr Chen
2024-07-24 14:46:10 +08:00
parent 875db69bcf
commit f622ea6779
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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':
+1
View File
@@ -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,