Clean legacy permissions when upgrading
This commit is contained in:
parent
3535ebc901
commit
a1cacb65c0
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ ynh_clean_setup () {
|
|||
}
|
||||
ynh_abort_if_errors
|
||||
|
||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||
if ynh_legacy_permissions_exists; then
|
||||
ynh_legacy_permissions_delete_all
|
||||
ynh_app_setting_delete --app=$app --key=is_public
|
||||
fi
|
||||
|
||||
ynh_script_progression --message="Making sure dedicated system user exists..."
|
||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||
|
||||
|
|
Loading…
Reference in a new issue