mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
perhaps a better syntax
This commit is contained in:
parent
69f7470d4a
commit
8c5097a9bd
1 changed files with 2 additions and 3 deletions
|
@ -79,9 +79,8 @@ if [[ $migration_process -eq 1 ]]; then
|
|||
final_path="/var/www/$app"
|
||||
|
||||
# Replace the user
|
||||
pkill -u $old_app
|
||||
ynh_system_user_delete $old_app
|
||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||
ynh_system_user_delete --username="$old_app"
|
||||
ynh_system_user_create --username="$app" --home_dir="$final_path"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue