mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Create /opts/salt directory if not present
This commit is contained in:
parent
262cd51ad3
commit
5eb376a887
1 changed files with 4 additions and 0 deletions
|
@ -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/"
|
||||
|
|
Loading…
Add table
Reference in a new issue