mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
Use --username argument for ynh_system_user_delete
As per the documentation suggests: https://yunohost.org/fr/packaging_apps_helpers#ynh-system-user-delete
This commit is contained in:
parent
c3b767cf04
commit
fe8b429ccc
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ if [[ $migration_process -eq 1 ]]; then
|
|||
db_user=$app
|
||||
|
||||
# Replace the user
|
||||
ynh_system_user_delete $old_app
|
||||
ynh_system_user_delete --username="$old_app"
|
||||
test getent passwd "$app" &>/dev/null || \
|
||||
useradd -d "$datadir" --system --user-group "$app" --shell /bin/bash || \
|
||||
ynh_die --message "Unable to create $app system account"
|
||||
|
|
Loading…
Add table
Reference in a new issue