1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2024-02-11 23:05:18 +01:00
parent 41801be48d
commit e29d286468

View file

@ -16,23 +16,9 @@ then
ynh_app_setting_set --app=$app --key=password --value="$password"
fi
#=================================================
# CHECK VERSION
#=================================================
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
# Get rid of legacy symlinks
[ -L "$install_dir/_data" ] && ynh_secure_remove "$install_dir/_data" || true
[ -L "$install_dir/galleries" ] && ynh_secure_remove "$install_dir/galleries" || true
[ -L "$install_dir/upload" ] && ynh_secure_remove "$install_dir/upload" || true
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=3
ynh_setup_source --dest_dir="$install_dir"
@ -53,7 +39,6 @@ then
ynh_secure_remove "$install_dir/upload"
fi
fi
chmod 750 "$data_dir"
chmod -R o-rwx "$data_dir"