Fix wrong home directory

This commit is contained in:
Josué Tille 2020-03-19 17:51:48 +01:00
parent e8049b0eb1
commit c87d5a3c66
No known key found for this signature in database
GPG Key ID: 716A6C99B04194EF
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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