From 85cc9925f0ff37e7ed18753c1bd28414a12dc54f Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Fri, 31 Mar 2023 08:21:00 +0200 Subject: [PATCH] fix upgrade --- scripts/upgrade | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index d32ec9b..c5ef3d0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,8 +46,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir/build/" + fi chmod 750 "$install_dir" @@ -72,14 +71,13 @@ ynh_script_progression --message="Making install..." if [ "$upgrade_type" == "UPGRADE_APP" ] then - # Install photoprism - pushd $install_dir/build - detect_arch - ./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION - popd + + # Download, check integrity, uncompress and patch the source from app.src + ynh_setup_source --dest_dir="$install_dir/build/" + mkdir -p "$install_dir/live/" rsync -a "$install_dir/build/output/opt/photoprism/" "$install_dir/live/" -#REMOVEME? ynh_secure_remove --file="$install_dir/build" + ynh_secure_remove --file="$install_dir/build" fi chmod 750 "$install_dir"