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

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

View File

@@ -4,7 +4,7 @@
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.
NOROOT=1
. /usr/sbin/so-common
if [ ! -f /root/repodownload.conf ]; then