1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ifm_ynh.git synced 2024-09-03 18:45:52 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-08-28 17:38:26 +02:00
parent bd7358c655
commit d4ea08eb2e
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -51,16 +51,6 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi
### If nobody installed your app before 4.1,
### then you may safely remove these lines
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all
ynh_app_setting_delete --app=$app --key=is_public
fi
#=================================================
# CREATE DEDICATED USER
#=================================================
@ -75,11 +65,9 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=3
ynh_script_progression --message="Upgrading source files..." --weight=2
# Download, check integrity, uncompress and patch the source from app.src
#ynh_setup_source --dest_dir="$final_path"
ynh_add_config --template="../conf/ifm.php" --destination="$final_path/ifm.php"
mv -f "../conf/ifm.php" "$final_path/ifm.php"
fi
chmod 750 "$final_path"