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 14:10:00 +01:00
parent 602c0e0680
commit eb51998e8e

View file

@ -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 sed -i "s/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/g" /etc/locale.gen
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 rm $final_path/conf/zabbix.conf.php
ynh_app_setting_set $app final_path $final_path 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 ### `ynh_add_nginx_config` will use the file conf/nginx.conf
# Create a dedicated nginx config # Create a dedicated nginx config
ynh_add_nginx_config
#================================================= ynh_restore_file "/usr/share/zabbix/conf/zabbix.conf.php"
# CREATE DEDICATED USER
#=================================================
# Create a system user
#ynh_system_user_create $app
#================================================= #=================================================
# PHP-FPM CONFIGURATION # PHP-FPM CONFIGURATION
#================================================= #=================================================
ynh_add_fpm_config ynh_restore_file "/etc/php/7.0/fpm/pool.d/ynhzabbix.conf"
# Reload SSOwat config # Reload SSOwat config
yunohost app ssowatconf yunohost app ssowatconf
@ -178,4 +173,6 @@ fi
#================================================= #=================================================
systemctl reload nginx systemctl reload nginx
systemctl reload php7.0-fpm