]> gitweb.michael.orlitzky.com - mjo-overlay.git/blobdiff - eclass/sys-user.eclass
sys-user.eclass: fix REPLACING_VERSIONS -> REPLACED_BY_VERSION name.
[mjo-overlay.git] / eclass / sys-user.eclass
index 8a4c426e3e0dcc36801d63079d427e8891d34241..cac5d2a6cba08119db3fa65f45c03dca11d7f3ec 100644 (file)
@@ -126,7 +126,7 @@ sys-user_modify() {
        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}"
 }
 
@@ -269,7 +269,7 @@ sys-user_pkg_prerm() {
        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).