diff --git a/scripts/upgrade b/scripts/upgrade index 1c53880..50ffafc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,6 +60,14 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi +#================================================= +# CREATE DEDICATED USER +#================================================= +ynh_script_progression --message="Making sure dedicated system user exists..." + +# Create a dedicated user (if not existing) +ynh_system_user_create --username=ynh_$app --home_dir="$final_path" + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================