From 92cade1144cc7dc205ad6fce0d6cf11423f004ad Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 12 Feb 2017 11:32:44 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e47a9f6..8a7782a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -16,15 +16,11 @@ if [[ ! "$path" == "/" ]]; then path=${path%/} fi -# Init final_path, if ever it got deleted somehow +# Copy files to the right place final_path=/var/www/$app sudo mkdir -p $final_path - -# Clean up -# This will remove old paste data (otherwise we would need to lower down security) sudo rm -rf $final_path/* - -# Copy files to the right place +extract_source $final_path # Files owned by root, www-data can just read sudo chown www-data:www-data $final_path -R