mirror of
https://github.com/YunoHost-Apps/framagames_ynh.git
synced 2024-09-03 18:36:28 +02:00
Adjustment on download sequence
This commit is contained in:
parent
6985d5a551
commit
b2b96f91eb
2 changed files with 8 additions and 6 deletions
|
@ -101,14 +101,15 @@ sudo mkdir -p $final_path
|
||||||
# We download the sources and go to latest revision
|
# We download the sources and go to latest revision
|
||||||
sudo rm -rf ./gitsources
|
sudo rm -rf ./gitsources
|
||||||
sudo mkdir gitsources
|
sudo mkdir gitsources
|
||||||
|
sudo chmod 777 gitsources
|
||||||
# We get the repository address
|
# We get the repository address
|
||||||
URL=`sudo cat ../sources/source_url`;
|
URL=`sudo cat ../sources/source_url`;
|
||||||
sudo git clone $URL gitsources
|
sudo git clone $URL gitsources
|
||||||
# We reset to the latest known revision
|
# We reset to the latest known revision
|
||||||
sudo cd gitsources
|
cd gitsources
|
||||||
SHA1=`sudo cat ../sources/source_sha1`;
|
SHA1=`sudo cat ../sources/source_sha1`;
|
||||||
git reset --hard $SHA1
|
sudo git reset --hard $SHA1
|
||||||
sudo cd ..
|
cd ..
|
||||||
|
|
||||||
# We copy the sources to the destination
|
# We copy the sources to the destination
|
||||||
sudo cp -a gitsources/* $final_path
|
sudo cp -a gitsources/* $final_path
|
||||||
|
|
|
@ -34,14 +34,15 @@ sudo mkdir -p $final_path
|
||||||
# We download the sources and go to latest revision
|
# We download the sources and go to latest revision
|
||||||
sudo rm -rf ./gitsources
|
sudo rm -rf ./gitsources
|
||||||
sudo mkdir gitsources
|
sudo mkdir gitsources
|
||||||
|
sudo chmod 777 gitsources
|
||||||
# We get the repository address
|
# We get the repository address
|
||||||
URL=`sudo cat ../sources/source_url`;
|
URL=`sudo cat ../sources/source_url`;
|
||||||
sudo git clone $URL gitsources
|
sudo git clone $URL gitsources
|
||||||
# We reset to the latest known revision
|
# We reset to the latest known revision
|
||||||
sudo cd gitsources
|
cd gitsources
|
||||||
SHA1=`sudo cat ../sources/source_sha1`;
|
SHA1=`sudo cat ../sources/source_sha1`;
|
||||||
git reset --hard $SHA1
|
sudo git reset --hard $SHA1
|
||||||
sudo cd ..
|
cd ..
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
sudo chmod 775 -R $final_path
|
sudo chmod 775 -R $final_path
|
||||||
|
|
Loading…
Reference in a new issue