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

Fix download direct sources

This commit is contained in:
anmol26s 2018-07-23 22:39:30 +05:30
parent 3cd265be45
commit 8d3ed7a483
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ ynh_app_setting_set $app final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src
tmpdir="$(mktemp -d)"
sudo wget -O "$tmpdir/ghost.zip" "https://ghost.org/zip/ghost-latest.zip"
unzip "$tmpdir/ghost.zip" -d "$final_path/."
unzip "$tmpdir/ghost.zip" -d "$final_path"
sudo rm -R "$tmpdir/ghost.zip"
#=================================================
# NGINX CONFIGURATION

View file

@ -82,7 +82,7 @@ sudo rm -R "$tmpdir/ghost.zip"
# Download, check integrity, uncompress and patch the source from app.src
tmpdir1="$(mktemp -d)"
sudo wget -O "$tmpdir1/ghost.zip" "https://ghost.org/zip/ghost-latest.zip"
unzip "$tmpdir1/ghost.zip" -d "$final_path/."
unzip "$tmpdir1/ghost.zip" -d "$final_path"
sudo rm -R "$tmpdir1/ghost.zip"
# copy content folder back to the final_path