1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dokuwiki_ynh.git synced 2024-09-03 18:26:20 +02:00

Déplacer les fichier après un exit

This commit is contained in:
magikcypress 2017-03-09 16:24:48 +01:00
parent 56a11e635c
commit cac99a41da

View file

@ -19,10 +19,6 @@ is_public=$(ynh_app_setting_get $app is_public)
sudo yunohost app checkurl "${domain}${path}" -a "$app" \
|| ynh_die "Path not available: ${domain}${path}"
# Restore sources & data
final_path="/var/www/${app}"
sudo cp -a ./sources "$final_path"
# Check configuration files php-fpm
nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
[[ -f $nginx_conf ]] && ynh_die \
@ -37,6 +33,10 @@ phpfpm_ini="/etc/php5/fpm/conf.d/20-${app}.ini"
"The PHP FPM INI configuration already exists at '${phpfpm_ini}'.
You should safely delete it before restoring this app."
# Restore sources & data
final_path="/var/www/${app}"
sudo cp -a ./sources "$final_path"
# Set permissions
sudo chown -R www-data: $final_path