1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

Update restore

This commit is contained in:
Mickael-Martin 2018-12-13 12:22:15 +01:00
parent ddc9551c81
commit d189bf501c

View file

@ -128,6 +128,17 @@ then
ynh_app_setting_delete $app skipped_uris
fi
#=================================================
# Restore db
#=================================================
db_name=$(ynh_app_setting_get $app db_name)
db_user=$(ynh_app_setting_get $app db_user)
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
ynh_mysql_setup_db $db_user $db_name $db_pwd
ynh_mysql_connect_as $db_name $db_pwd $db_name < ./db.sql
#=================================================
# Restore configs files
#=================================================
@ -144,6 +155,8 @@ ynh_restore_file "/etc/zabbix"
systemctl enable zabbix-server && systemctl start zabbix-server
#=================================================
# SETUP LOGROTATE
#=================================================