Call fatal_error (not startup_error) when non-root does default compile

- Also reword the message
This commit is contained in:
Tom Eastep 2017-12-29 12:49:43 -08:00
parent f861f8da35
commit 9bd10c0c00
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -368,7 +368,7 @@ get_config() {
ensure_root() { ensure_root() {
if [ $(id -u) -ne 0 ]; then if [ $(id -u) -ne 0 ]; then
if [ -z "$g_shorewalldir" -o "$g_shorewalldir" = $CONFDIR/$PRODUCT ]; then if [ -z "$g_shorewalldir" -o "$g_shorewalldir" = $CONFDIR/$PRODUCT ]; then
startup_error "Ordinary users may not $COMMAND the $CONFDIR/$PRODUCT configuration" fatal_error "Ordinary users may not $COMMAND the default $PRODUCT configuration"
fi fi
fi fi
} }