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:
parent
e21a15af5c
commit
23e27e15e6
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue