mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Fix home_dir unset in ynh_system_user_create
This commit is contained in:
parent
0bc8300b88
commit
a06ace4aa8
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ ynh_system_user_create () {
|
||||||
local use_shell
|
local use_shell
|
||||||
# Manage arguments with getopts
|
# Manage arguments with getopts
|
||||||
ynh_handle_getopts_args "$@"
|
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
|
if ! ynh_system_user_exists "$username" # Check if the user exists on the system
|
||||||
then # If the user doesn't exist
|
then # If the user doesn't exist
|
||||||
|
|
Loading…
Add table
Reference in a new issue