From c87d5a3c66734d02d59a0b9f92a6e1d0db1f6ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 19 Mar 2020 17:51:48 +0100 Subject: [PATCH] Fix wrong home directory --- scripts/install | 2 +- scripts/restore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index b61967d..1082312 100644 --- a/scripts/install +++ b/scripts/install @@ -59,7 +59,7 @@ ynh_mysql_create_db "$dbname" "$dbuser" "$dbpass" # Add users ynh_script_progression --message="Configuring system user..." -ynh_system_user_create --username= $app --home_dir=/opt/yunohost/$app --use_shell +ynh_system_user_create --username=$app --home_dir=/home/$app --use_shell # create needed directories create_dir diff --git a/scripts/restore b/scripts/restore index 2cc109d..b486eab 100644 --- a/scripts/restore +++ b/scripts/restore @@ -40,7 +40,7 @@ test ! -e "$final_path" || ynh_die --message "This path already contains a folde # Add users ynh_script_progression --message="Configuring system user..." -ynh_system_user_create --username= $app --home_dir=/opt/yunohost/$app --use_shell +ynh_system_user_create --username=$app --home_dir=/home/$app --use_shell # Restore all files ynh_script_progression --message="Restoring files..." --weight=10