mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
try kill process before delete user
This commit is contained in:
parent
89d64d0582
commit
12e5634073
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ if [[ $migration_process -eq 1 ]]; then
|
||||||
final_path="/var/www/$app"
|
final_path="/var/www/$app"
|
||||||
|
|
||||||
# Replace the user
|
# Replace the user
|
||||||
|
pkill -u someuser
|
||||||
ynh_system_user_delete $old_app
|
ynh_system_user_delete $old_app
|
||||||
ynh_system_user_create --username=$app --home_dir="$final_path"
|
ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue