1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/framagames_ynh.git synced 2024-09-03 18:36:28 +02:00

Copy the sources to final_path

This commit is contained in:
polytan02 2016-12-24 14:10:21 +00:00
parent b9f2cbdb62
commit 9c4ed0c7a3
2 changed files with 4 additions and 5 deletions

View file

@ -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

View file

@ -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