usermod ${SYS_USER_UID:+--uid }"${SYS_USER_UID}" \
${SYS_USER_GROUPS:+--append --groups }"${SYS_USER_GROUPS}" \
--shell "${SYS_USER_SHELL}" \
- --home-dir "${SYS_USER_HOME}" \
+ --home "${SYS_USER_HOME}" \
"${SYS_USER_NAME}"
}
die "home directory conflict for new user: ${SYS_USER_HOME}"
fi
- if [[ "${oldhshell}" != "${SYS_USER_SHELL}" ]]; then
+ if [[ "${oldshell}" != "${SYS_USER_SHELL}" ]]; then
die "shell conflict for new user: ${SYS_USER_SHELL}"
fi
if [[ -z $(sys-user_getuid "${SYS_USER_NAME}") ]]; then
# We have successfully done nothing.
ewarn "Tried to remove nonexistent user ${SYS_USER_NAME}."
- elif [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elif [[ -z "${REPLACED_BY_VERSION}" ]]; then
# The user to remove exists, and this is not an upgrade. For
# Phase 1, we maintain the status quo and simply refuse to
# remove him (unless you know what you are doing).
fi
# The missing case: if the user exists and this is an upgrade,
- # we leave the user alone to be modified in
- # sys-user_pkg_preinst().
+ # we leave him alone to be modified in sys-user_pkg_preinst().
fi
}