From f4c4c20d29651af5b010be0fda42c69e9f456923 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Jul 2021 18:21:01 +0200 Subject: Cleanup, rename some variables --- core/includes/useradd.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/includes') 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 -- cgit v1.2.3-55-g7522