mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
try fix
This commit is contained in:
parent
8c5097a9bd
commit
b302d7f444
1 changed files with 4 additions and 3 deletions
|
@ -76,11 +76,12 @@ fi
|
|||
ynh_handle_app_migration --migration_id=garradin --migration_list=garradin_migrations
|
||||
|
||||
if [[ $migration_process -eq 1 ]]; then
|
||||
final_path="/var/www/$app"
|
||||
final_path="/var/www/$app"
|
||||
|
||||
# Replace the user
|
||||
ynh_system_user_delete --username="$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 || \
|
||||
ynh_die --message "Unable to create $app system account"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue