diff --git a/scripts/install b/scripts/install index 79e991c..c71514f 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index bd6b8be..0d954f9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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}"