Fix setup error

This commit is contained in:
Mike Reeves
2022-09-15 11:10:33 -04:00
parent 8e99e02787
commit 2e4f122e57

View File

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