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

fix upgrade

This commit is contained in:
Thomas 2023-03-31 08:21:00 +02:00 committed by Félix Piédallu
parent aff25055f0
commit 85cc9925f0

View file

@ -46,8 +46,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." 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 fi
chmod 750 "$install_dir" chmod 750 "$install_dir"
@ -72,14 +71,13 @@ ynh_script_progression --message="Making install..."
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
# Install photoprism
pushd $install_dir/build # Download, check integrity, uncompress and patch the source from app.src
detect_arch ynh_setup_source --dest_dir="$install_dir/build/"
./docker-image-extract photoprism/photoprism:$PHOTOPRISM_VERSION
popd
mkdir -p "$install_dir/live/" mkdir -p "$install_dir/live/"
rsync -a "$install_dir/build/output/opt/photoprism/" "$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 fi
chmod 750 "$install_dir" chmod 750 "$install_dir"