From 2266f4771c0fc48a3db31ad4b6d06b97f5e3875e Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sun, 17 Jun 2018 20:54:43 +0530 Subject: [PATCH] Fixed upgrade and restore --- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index a76dec7..9836678 100755 --- a/scripts/restore +++ b/scripts/restore @@ -92,8 +92,8 @@ chown -R $app: $final_path # RESTORE THE PHP-FPM CONFIGURATION #================================================= -ynh_restore_file "/etc/php/7.1/pool.d/$app.conf" -ynh_restore_file "/etc/php/7.1/conf.d/20-$app.ini" +ynh_restore_file "/etc/php/7.1/fpm/pool.d/$app.conf" +ynh_restore_file "/etc/php/7.1/fpm/pool.d/$app.conf" #================================================= # SPECIFIC UPGRADE diff --git a/scripts/upgrade b/scripts/upgrade index 37a5eaa..3abeae1 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,8 +77,8 @@ mkdir -p "$tmpdir/storage/export" mkdir -p "$final_path/storage/upload/" mkdir -p "$final_path/storage/export/" cp -a "$final_path/.env" "$tmpdir/.env" -cp -a "$final_path/storage/upload/*" "$tmpdir/storage/upload/" -cp -a "$final_path/storage/export/*" "$tmpdir/storage/export/" +cp -a "$final_path/storage/upload/*" "$tmpdir/storage/upload/*" +cp -a "$final_path/storage/export/*" "$tmpdir/storage/export/*" # Remove the app directory securely ynh_secure_remove "$final_path"