[fix] Fix home_dir unset in ynh_system_user_create

This commit is contained in:
Maniack Crudelis 2019-01-27 23:46:26 +01:00 committed by GitHub
parent 0bc8300b88
commit a06ace4aa8
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