summaryrefslogtreecommitdiffstats
path: root/core/includes/useradd.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/includes/useradd.inc')
-rw-r--r--core/includes/useradd.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/includes/useradd.inc b/core/includes/useradd.inc
index 146e075e..d7be6b4d 100644
--- a/core/includes/useradd.inc
+++ b/core/includes/useradd.inc
@@ -101,7 +101,7 @@ add_user() {
# In install mode, only work on the system's files directly and do *not* copy to TARGET_BUILD_DIR
declare -a _USERADD_OPTS
- if [ -z "$REMOTE_LOCAL_INSTALL" ]; then
+ if [ -z "$MLTK_INSTALL" ]; then
# regular mltk mode, copy the current user-related files to TARGET_BUILD_DIR
local _PASSWD="${TARGET_BUILD_DIR}/etc/passwd"
local _GROUP="${TARGET_BUILD_DIR}/etc/group"
@@ -158,7 +158,7 @@ add_user() {
else
_USERADD_OPTS+=("--create-home")
# make sure the parent directory exists
- if [ -z "$REMOTE_LOCAL_INSTALL" ]; then
+ if [ -z "$MLTK_INSTALL" ]; then
_udir="${TARGET_BUILD_DIR}/${USERHOME}"
else
_udir="$USERHOME"
@@ -197,7 +197,7 @@ add_group () {
[ $# -lt 1 ] && perror "add_group called without argument."
[ -z "${TARGET_BUILD_DIR}" ] && perror "add_group: TARGET_BUILD_DIR not set"
declare -a _GROUPADD_OPTS
- if [ -z "$REMOTE_LOCAL_INSTALL" ]; then
+ if [ -z "$MLTK_INSTALL" ]; then
# regular mltk mode, copy the current user-related files to TARGET_BUILD_DIR
local _PASSWD=${TARGET_BUILD_DIR}/etc/passwd
local _GROUP=${TARGET_BUILD_DIR}/etc/group