diff options
author | Simon Rettberg | 2021-07-09 18:21:01 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-07-09 18:21:01 +0200 |
commit | f4c4c20d29651af5b010be0fda42c69e9f456923 (patch) | |
tree | 5f7054aea0b7128598c16855a9e619d9e1fd11d6 /core/includes | |
parent | [zram-swap] make it an actual module :) (diff) | |
download | mltk-f4c4c20d29651af5b010be0fda42c69e9f456923.tar.gz mltk-f4c4c20d29651af5b010be0fda42c69e9f456923.tar.xz mltk-f4c4c20d29651af5b010be0fda42c69e9f456923.zip |
Cleanup, rename some variables
Diffstat (limited to 'core/includes')
-rw-r--r-- | core/includes/useradd.inc | 6 |
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 |