mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
Fix restore script
This commit is contained in:
parent
19df233e6f
commit
93f70beac9
1 changed files with 4 additions and 0 deletions
|
@ -31,7 +31,11 @@ dbpass=$(ynh_app_setting_get "$app" mysqlpwd)
|
|||
ynh_mysql_create_user $dbuser $dbpass
|
||||
|
||||
# Restore all config and data
|
||||
ynh_secure_remove /etc/monitorix # we remove the directory because if it is not empty the ynh_restore cmd fail
|
||||
ynh_restore
|
||||
|
||||
# Reload nginx
|
||||
systemctl reload nginx.service
|
||||
|
||||
# Reload services
|
||||
systemctl restart monitorix.service
|
Loading…
Add table
Reference in a new issue