Browse Source

check_root bug

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
8306921cc6
  1. 3
      lgsm/functions/check_root.sh

3
lgsm/functions/check_root.sh

@ -12,6 +12,9 @@ if [ "$(whoami)" = "root" ]; then
fn_print_fail_nl "Do NOT run this script as root!"
if [ -d "${lgsmlogdir}" ]; then
fn_script_log_fatal "${selfname} attempted to run as root."
else
# Forces exit code is log does not yet exist.
exitcode=1
fi
core_exit.sh
fi

Loading…
Cancel
Save