Create /opts/salt directory if not present

This commit is contained in:
Twangboy 2023-01-12 20:44:18 -07:00 committed by Megan Wilhite
parent 262cd51ad3
commit 5eb376a887

View file

@ -134,6 +134,10 @@ fi
# Copy salt-config from Salt Repo to /opt/salt
#-------------------------------------------------------------------------------
SALT_DIR="$BUILD_DIR/opt/salt"
if ! [ -d "$SALT_DIR" ]; then
# We only need this for relenv builds
mkdir -p "$SALT_DIR"
fi
if ! [ -f "$SALT_DIR/salt-config.sh" ]; then
_msg "Staging Salt config script"
cp "$SCRIPT_DIR/scripts/salt-config.sh" "$SALT_DIR/"