1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/laverna_ynh.git synced 2024-09-03 19:36:06 +02:00

Use git to fetch sources

This commit is contained in:
Nicolas Frandeboeuf 2017-02-14 08:33:59 +01:00
parent 13ca9e6010
commit 1c96952085
2 changed files with 4 additions and 6 deletions

View file

@ -34,11 +34,8 @@ sudo yunohost app checkurl "${domain}${path}" -a "$app" \
# Copy source files
src_path=/var/www/$app
sudo mkdir -p $src_path
sudo wget -P "$src_path" https://github.com/Laverna/static-laverna/archive/gh-pages.zip -O "$src_path"/laverna.zip
sudo unzip "$src_path"/laverna.zip -d "$src_path"
sudo cp -R "$src_path"/static-laverna-gh-pages/* "$src_path"
sudo rm "$src_path"/laverna.zip
sudo rm -rf "$src_path"/static-laverna-gh-pages
sudo git clone https://github.com/Laverna/static-laverna.git $src_path
sudo git --git-dir "$src_path/.git" checkout 59388e60e76ca4d3657e0398c553da9186cbf1ce
# Set permissions to app files
sudo chown -R root: $src_path

View file

@ -22,7 +22,8 @@ path=${path%/}
# Copy source files
src_path=/var/www/$app
sudo mkdir -p $src_path
sudo cp -a ../sources/. $src_path
sudo git --git-dir "$final_path/.git" remote update
sudo git --git-dir "$final_path/.git" checkout 59388e60e76ca4d3657e0398c553da9186cbf1ce
# Set permissions to app files
# you may need to make some file and/or directory writeable by www-data (nginx user)