Skip to content

Commit 653f212

Browse files
committed
move to helper-scripts
1 parent e0f3e16 commit 653f212

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

usr/bin/dist-installer-cli

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,25 +4066,6 @@ set_target_user_account() {
40664066
}
40674067

40684068

4069-
run_as_target_user() {
4070-
if [ -z "${target_user}" ]; then
4071-
"${@}"
4072-
else
4073-
ROOT_CMD_TARGET_USER="${target_user}" root_cmd "${@}"
4074-
fi
4075-
}
4076-
4077-
4078-
run_as_target_user_and_dir() {
4079-
local target_dir
4080-
target_dir="${1:-}"
4081-
[ -z "${target_dir}" ] && die 1 "Failed to provide directory name to 'run_as_target_user_and_dir'!"
4082-
[ -z "${target_user}" ] && die 1 "Cannot use 'run_as_target_user_and_dir' if 'set_target_user_account' is not used first!"
4083-
shift
4084-
ROOT_CMD_TARGET_USER="${target_user}" ROOT_CMD_TARGET_DIR="${target_dir}" root_cmd "${@}"
4085-
}
4086-
4087-
40884069
adjust_default_for_sysmaint_maybe() {
40894070
if getent passwd sysmaint >/dev/null; then
40904071
log info "Account 'sysmaint' exists: 'Yes'"

0 commit comments

Comments
 (0)