diff --git a/scripts/install b/scripts/install index b7df309..6ae6a6a 100644 --- a/scripts/install +++ b/scripts/install @@ -106,14 +106,12 @@ sudo mkdir gitsources sudo chmod 777 gitsources # We get the repository address sudo git clone $URL gitsources -# We reset to the latest known revision +# We reset to the latest known revision and copy the files to final_path cd gitsources sudo git reset --hard $SHA1 +sudo cp -a * $final_path cd .. -# We copy the sources to the destination -sudo cp -a gitsources/* $final_path - # Set permissions sudo chmod 775 -R $final_path sudo chown -hR www-data:www-data $final_path diff --git a/scripts/upgrade b/scripts/upgrade index 62d06c9..a4ac57a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,9 +39,10 @@ sudo mkdir gitsources sudo chmod 777 gitsources # We get the repository address sudo git clone $URL gitsources -# We reset to the latest known revision +# We reset to the latest known revision and copy the files to final_path cd gitsources sudo git reset --hard $SHA1 +sudo cp -a * $final_path cd .. # Set permissions