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