1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00

On supprime les test sur les fichiers dans restore

This commit is contained in:
magikcypress 2017-03-09 17:59:55 +01:00
parent 31d0baddbd
commit 83e03f8134

View file

@ -21,18 +21,18 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|| ynh_die "Path not available: ${domain}${path}" || ynh_die "Path not available: ${domain}${path}"
# Check configuration files php-fpm # Check configuration files php-fpm
nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf" # nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
[[ -f $nginx_conf ]] && ynh_die \ # [[ -f $nginx_conf ]] && ynh_die \
"The NGINX configuration already exists at '${nginx_conf}'. # "The NGINX configuration already exists at '${nginx_conf}'.
You should safely delete it before restoring this app." # You should safely delete it before restoring this app."
phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf" # phpfpm_conf="/etc/php5/fpm/pool.d/${app}.conf"
[[ -f $phpfpm_conf ]] && ynh_die \ # [[ -f $phpfpm_conf ]] && ynh_die \
"The PHP FPM configuration already exists at '${phpfpm_conf}'. # "The PHP FPM configuration already exists at '${phpfpm_conf}'.
You should safely delete it before restoring this app." # You should safely delete it before restoring this app."
phpfpm_ini="/etc/php5/fpm/conf.d/20-${app}.ini" # phpfpm_ini="/etc/php5/fpm/conf.d/20-${app}.ini"
[[ -f $phpfpm_ini ]] && ynh_die \ # [[ -f $phpfpm_ini ]] && ynh_die \
"The PHP FPM INI configuration already exists at '${phpfpm_ini}'. # "The PHP FPM INI configuration already exists at '${phpfpm_ini}'.
You should safely delete it before restoring this app." # You should safely delete it before restoring this app."
# Restore sources & data # Restore sources & data
final_path="/var/www/${app}" final_path="/var/www/${app}"