From b3061996f9d3b6587ade70b26fb6eb69b55e04cd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Dec 2020 17:48:10 +0100 Subject: [PATCH] fix --- scripts/install | 1 + scripts/upgrade | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 350030e..405ae67 100755 --- a/scripts/install +++ b/scripts/install @@ -118,6 +118,7 @@ ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_fil # setup application config pushd "$final_path" + php$phpversion artisan upgrade php$phpversion artisan key:generate -n --force --env php$phpversion artisan migrate -n --force php$phpversion artisan config:clear -n diff --git a/scripts/upgrade b/scripts/upgrade index 0eb7027..2374dcf 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -82,7 +82,6 @@ then # Backup the config file in the temp dir cp -a "$final_path/public/dist/user.css" "$tmpdir/user.css" - cp -R "$final_path/public/dist/uploads" "$tmpdir/uploads" # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -92,7 +91,6 @@ then # Copy the admin saved settings from tmp directory to final path cp -a "$tmpdir/user.css" "$final_path/public/dist/user.css" - cp -R "$final_path/uploads" "$final_path/public/dist/uploads" # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir"