From 4d2ddaedbce477b22d1b4586644c527d581507c6 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Thu, 22 Dec 2016 01:13:41 +0000 Subject: [PATCH] Copy sources/* in final_path --- scripts/install | 4 +++- scripts/upgrade | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 5fd70d6..8eb108c 100755 --- a/scripts/install +++ b/scripts/install @@ -50,9 +50,11 @@ sudo apt-get install --quiet --assume-yes php5-gd php5-sqlite php5-json php5-int sudo mkdir -p $final_path # Base site +sudo cp -a ../sources/* $final_path/ + +# Site adjustments #sed -i "s@DOMAINTOCHANGE@$domain@g" ../sources/index.html #sed -i "s@SITETOCHANGE@$sitename@g" ../sources/index.html -#sudo cp ../sources/* $final_path/ # Set permissions sudo chmod 775 -R $final_path diff --git a/scripts/upgrade b/scripts/upgrade index 255245a..af993d0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,6 +42,12 @@ sudo cp ../conf/php-fpm.conf $finalphpconf sudo chown root: $finalphpconf sudo chmod 644 $finalphpconf +# Removal of old folder and restart from fresh +sudo rm -rf $final_path +sudo mkdir -p $final_path + +# Base site +sudo cp -a ../sources/* $final_path/ # We adjust permissions sudo chmod 775 -R $final_path