Saltify it up

This commit is contained in:
Mike Reeves
2023-03-23 10:43:47 -04:00
parent b3ea4194dd
commit f8d5acd37d
5 changed files with 56 additions and 5 deletions
+6 -4
View File
@@ -8,10 +8,12 @@
DEFAULT_SALT_DIR=/opt/so/saltstack/default
DOC_BASE_URL="https://docs.securityonion.net/en/2.4"
# Check for prerequisites
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run using sudo!"
exit 1
if [ ! -z $NOROOT ]; then
# Check for prerequisites
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run using sudo!"
exit 1
fi
fi
# Define a banner to separate sections