From 9c4ed0c7a3f6da59668ee7fb4172ba672f0bc0eb Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sat, 24 Dec 2016 14:10:21 +0000 Subject: [PATCH] Copy the sources to final_path --- scripts/install | 6 ++---- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) 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