mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:39:26 +08:00
update
This commit is contained in:
@@ -242,7 +242,10 @@ def zabbixImportMySQLDataFile():
|
||||
return '/usr/share/zabbix-sql-scripts/mysql/server.sql.gz'
|
||||
|
||||
def zabbixImportMySQLData():
|
||||
getMySQLConf()
|
||||
mysql_conf = getMySQLConf()
|
||||
if os.path.exists(mysql_conf):
|
||||
exit("需要安装MySQL")
|
||||
|
||||
choose_mysql = getServerDir()+'/mysql.pl'
|
||||
ver = mw.readFile(choose_mysql)
|
||||
|
||||
|
||||
@@ -26,13 +26,13 @@ Install_App()
|
||||
echo "rpm -Uvh https://repo.zabbix.com/zabbix/7.0/sles/${SYS_VERSION_ID:0:2}/x86_64/${ZABBIX_NAME}"
|
||||
|
||||
# cd $serverPath/source/zabbix && rpm -Uvh ${ZABBIX_NAME}
|
||||
zypper install -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts zabbix-selinux-policy
|
||||
zypper install -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts
|
||||
zypper install -y zabbix-agent
|
||||
}
|
||||
|
||||
Uninstall_App()
|
||||
{
|
||||
zypper remove -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts zabbix-selinux-policy
|
||||
zypper remove -y zabbix-server-mysql zabbix-web-mysql zabbix-sql-scripts
|
||||
zypper remove -y zabbix-agent
|
||||
rm -rf /etc/zabbix
|
||||
echo "卸载成功"
|
||||
|
||||
Reference in New Issue
Block a user