From 0a7fcb672d36f94eb682eca773497ba3c422cb6f Mon Sep 17 00:00:00 2001 From: anmol26s Date: Fri, 28 Sep 2018 21:28:22 +0530 Subject: [PATCH] Updation from previous version fix --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 197040c..6a814ea 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -47,7 +47,9 @@ tmpdir="$(mktemp -d)" cp -af "$final_path/.htaccess" "$tmpdir/." sudo mkdir -p "$tmpdir/view" cp -af "$final_path/view/smarty3" "$tmpdir/view/." -rm -Rf "$final_path" +if [ -f $final_path/.htconfig.php ]; then + rm "$final_path/.htconfig.php" +fi # If final_path doesn't exist, create it if [ -z $final_path ]; then final_path=/var/www/$app