install-multi-user.sh: don't break on Mojave default $HOME

This commit is contained in:
Domen Kožar 2019-05-15 09:31:11 +00:00 committed by GitHub
parent 5f6840fbb4
commit ee62be4d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,6 +484,9 @@ EOF
if [ "$(poly_user_home_get "$username")" = "/var/empty" ]; then
row " Home Directory" "/var/empty"
# macOS Mojave
elif [ "$(poly_user_home_get "$username")" = "/private/var/empty" ]; then
row " Home Directory" "/private/var/empty"
else
poly_user_home_set "$username" "/var/empty"
row " Home Directory" "/var/empty"