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

Fix migration

This commit is contained in:
Florent 2023-02-02 16:15:15 +01:00 committed by Florent F
parent ac5115e5a1
commit b0451fc730
2 changed files with 5 additions and 1 deletions

View file

@ -22,7 +22,9 @@ script_name="$0"
# DELETE OLD APP'S SETTINGS
#=================================================
ynh_secure_remove --file="/etc/yunohost/apps/$old_app"
# `app=""` Circumvents this issue: https://github.com/YunoHost/issues/issues/2138
app="" ynh_secure_remove --file="/etc/yunohost/apps/$old_app"
yunohost app ssowatconf

View file

@ -87,6 +87,8 @@ ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migra
if [[ $migration_process -eq 1 ]]; then
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
ynh_permission_update --permission="main" --add="all_users"
ynh_permission_update --permission="main" --add="visitors"
fi
#=================================================