Merge pull request #629 from YunoHost/Fix_ynh_system_user_create

[fix] Fix home_dir unset in ynh_system_user_create
This commit is contained in:
Alexandre Aubin 2019-01-28 02:06:05 +01:00 committed by GitHub
commit 081d4b2a46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,8 @@ ynh_system_user_create () {
local use_shell
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
local use_shell="${use_shell:-0}"
use_shell="${use_shell:-0}"
home_dir="${home_dir:-}"
if ! ynh_system_user_exists "$username" # Check if the user exists on the system
then # If the user doesn't exist