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:
parent
b9f2cbdb62
commit
9c4ed0c7a3
2 changed files with 4 additions and 5 deletions
|
@ -106,14 +106,12 @@ sudo mkdir gitsources
|
||||||
sudo chmod 777 gitsources
|
sudo chmod 777 gitsources
|
||||||
# We get the repository address
|
# We get the repository address
|
||||||
sudo git clone $URL gitsources
|
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
|
cd gitsources
|
||||||
sudo git reset --hard $SHA1
|
sudo git reset --hard $SHA1
|
||||||
|
sudo cp -a * $final_path
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# We copy the sources to the destination
|
|
||||||
sudo cp -a gitsources/* $final_path
|
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
sudo chmod 775 -R $final_path
|
sudo chmod 775 -R $final_path
|
||||||
sudo chown -hR www-data:www-data $final_path
|
sudo chown -hR www-data:www-data $final_path
|
||||||
|
|
|
@ -39,9 +39,10 @@ sudo mkdir gitsources
|
||||||
sudo chmod 777 gitsources
|
sudo chmod 777 gitsources
|
||||||
# We get the repository address
|
# We get the repository address
|
||||||
sudo git clone $URL gitsources
|
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
|
cd gitsources
|
||||||
sudo git reset --hard $SHA1
|
sudo git reset --hard $SHA1
|
||||||
|
sudo cp -a * $final_path
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
|
|
Loading…
Reference in a new issue