mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Download direct sources
This commit is contained in:
parent
d275555674
commit
3cd265be45
2 changed files with 9 additions and 3 deletions
|
@ -101,8 +101,10 @@ ynh_mysql_setup_db $db_name $db_name
|
|||
|
||||
ynh_app_setting_set $app final_path $final_path
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
sudo wget -O "$tmpdir/ghost.zip" "https://ghost.org/zip/ghost-latest.zip"
|
||||
unzip "$tmpdir/ghost.zip" -d "$final_path/."
|
||||
sudo rm -R "$tmpdir/ghost.zip"
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -77,9 +77,13 @@ path_url=$(ynh_normalize_url_path $path_url)
|
|||
tmpdir="$(mktemp -d)"
|
||||
# Backup the content folder to the temp dir
|
||||
cp -ar "$final_path/ghost/content" "$tmpdir"
|
||||
sudo rm -R "$tmpdir/ghost.zip"
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source "$final_path"
|
||||
tmpdir1="$(mktemp -d)"
|
||||
sudo wget -O "$tmpdir1/ghost.zip" "https://ghost.org/zip/ghost-latest.zip"
|
||||
unzip "$tmpdir1/ghost.zip" -d "$final_path/."
|
||||
sudo rm -R "$tmpdir1/ghost.zip"
|
||||
|
||||
# copy content folder back to the final_path
|
||||
sudo cp -ar "$tmpdir/content" "${final_path}"
|
||||
|
|
Loading…
Add table
Reference in a new issue