Merge pull request #8748 from Security-Onion-Solutions/funstuff

Fix setup error
This commit is contained in:
Mike Reeves
2022-09-15 11:12:21 -04:00
committed by GitHub

View File

@@ -5,8 +5,9 @@
# https://securityonion.net/license; you may not use this file except in compliance with the # https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0. # Elastic License 2.0.
if [[ $OPERATION != 'setup' ]]; then if [ "$(id -u)" -ne 0 ]; then
. /usr/sbin/so-common echo "This script must be run using sudo!"
exit 1
fi fi
if [[ $# -lt 1 ]]; then if [[ $# -lt 1 ]]; then