Forráskód Böngészése

bug fichier restore

magikcypress 9 éve
szülő
commit
8a65b6adbf
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      scripts/restore

+ 4 - 4
scripts/restore

@@ -27,17 +27,17 @@ if [ -d $final_path ]; then
 fi
 
 # Check configuration files nginx
-nginx_conf="/etc/nginx/conf.d/${domain}.d/nginx.conf"
+nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
 if [ -f $nginx_conf ]; then
 	ynh_die "The NGINX configuration already exists at '${nginx_conf}'. You should safely delete it before restoring this app."
-
+fi
 # Check configuration files php-fpm
-phpfpm_conf="/etc/php5/fpm/pool.d/php-fpm.conf"
+phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf"
 if [ -f $phpfpm_conf ]; then 
 	ynh_die "The PHP FPM configuration already exists at '${phpfpm_conf}'. You should safely delete it before restoring this app."
 fi
 
-phpfpm_ini="/etc/php5/fpm/conf.d/php-fpm.ini"
+phpfpm_ini="/etc/php5/fpm/conf.d/20-${app}.ini"
 if [ -f $phpfpm_ini ]; then
 	ynh_die "The PHP FPM INI configuration already exists at '${phpfpm_ini}'. You should safely delete it before restoring this app."
 fi