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

correct user create

This commit is contained in:
rodinux 2023-01-15 16:57:24 +01:00
parent e21a15af5c
commit 23e27e15e6

View file

@ -78,8 +78,7 @@ ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migra
if [[ $migration_process -eq 1 ]]; then
# Replace the user
ynh_system_user_delete --username="$old_app"
useradd -d "$final_path" --system --user-group "$app" || \
ynh_die --message "Unable to create $app system account"
ynh_system_user_create --username=$app --home_dir="$final_path"
fi
#=================================================