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:
parent
ddc9551c81
commit
d189bf501c
1 changed files with 13 additions and 0 deletions
|
@ -128,6 +128,17 @@ then
|
||||||
ynh_app_setting_delete $app skipped_uris
|
ynh_app_setting_delete $app skipped_uris
|
||||||
fi
|
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
|
# Restore configs files
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -144,6 +155,8 @@ ynh_restore_file "/etc/zabbix"
|
||||||
systemctl enable zabbix-server && systemctl start zabbix-server
|
systemctl enable zabbix-server && systemctl start zabbix-server
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP LOGROTATE
|
# SETUP LOGROTATE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue