From b0c590b5168a572ffbe511aed7b8d3e1e60550da Mon Sep 17 00:00:00 2001 From: magikcypress Date: Tue, 14 Mar 2017 15:45:05 +0100 Subject: [PATCH] [test] bug fichier restore --- scripts/restore | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index e821b9f..b1e69e4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -27,17 +27,17 @@ fi # Check configuration files nginx nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf" -if [ -f $nginx_conf ]; then +if [ -f "${nginx_conf}" ]; then ynh_die "The NGINX configuration already exists at '${nginx_conf}'. You should safely delete it before restoring this app." # Check configuration files php-fpm phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf" -if [ -f $phpfpm_conf ]; then +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/20-${app}.ini" -if [ -f $phpfpm_ini ]; then +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