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:
parent
ac5115e5a1
commit
b0451fc730
2 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,9 @@ script_name="$0"
|
||||||
# DELETE OLD APP'S SETTINGS
|
# 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
|
yunohost app ssowatconf
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,8 @@ ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migra
|
||||||
|
|
||||||
if [[ $migration_process -eq 1 ]]; then
|
if [[ $migration_process -eq 1 ]]; then
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue