File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff 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-
40884069adjust_default_for_sysmaint_maybe () {
40894070 if getent passwd sysmaint > /dev/null; then
40904071 log info " Account 'sysmaint' exists: 'Yes'"
You can’t perform that action at this time.
0 commit comments