From eb51998e8ebc4cf5dcf0b633d85b8fadb9c290e9 Mon Sep 17 00:00:00 2001 From: Mickael-Martin Date: Thu, 13 Dec 2018 14:10:00 +0100 Subject: [PATCH] Update restore --- scripts/restore | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/restore b/scripts/restore index 166ef64..b5649ad 100644 --- a/scripts/restore +++ b/scripts/restore @@ -79,7 +79,7 @@ DEBIAN_FRONTEND=noninteractive apt-mark hold zabbix-server-mysql zabbix-frontend sed -i "s/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/g" /etc/locale.gen locale-gen -ln -s /usr/share/zabbix $final_path +ln -s /usr/share/zabbix /var/www/zabbix rm $final_path/conf/zabbix.conf.php ynh_app_setting_set $app final_path $final_path @@ -91,20 +91,15 @@ ynh_app_setting_set $app final_path $final_path ### `ynh_add_nginx_config` will use the file conf/nginx.conf # Create a dedicated nginx config -ynh_add_nginx_config -#================================================= -# CREATE DEDICATED USER -#================================================= - -# Create a system user -#ynh_system_user_create $app +ynh_restore_file "/usr/share/zabbix/conf/zabbix.conf.php" #================================================= # PHP-FPM CONFIGURATION #================================================= -ynh_add_fpm_config +ynh_restore_file "/etc/php/7.0/fpm/pool.d/ynhzabbix.conf" + # Reload SSOwat config yunohost app ssowatconf @@ -178,4 +173,6 @@ fi #================================================= systemctl reload nginx +systemctl reload php7.0-fpm +