Skip to content

Commit

Permalink
Emergency workaround for salt issue 6502
Browse files Browse the repository at this point in the history
This workaround will create the cachedir that 0.16.2 fails to (see
saltstack/salt#6502)
  • Loading branch information
terminalmage committed Aug 2, 2013
1 parent a9e1d6e commit cea86a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bootstrap-salt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3026,6 +3026,13 @@ if [ $CONFIG_ONLY -eq $BS_FALSE ]; then
fi
fi

# Ensure that the cachedir exists
# (Workaround for https://github.com/saltstack/salt/issues/6502)
if [ $INSTALL_MINION -eq $BS_TRUE ]; then
if [ ! -d /var/cache/salt/minion/proc ]; then
echodebug "Making cachedir"
mkdir -p /var/cache/salt/minion/proc
fi

# Run any post install function, Only execute function is not in config mode only
if [ $CONFIG_ONLY -eq $BS_FALSE ] && [ "$POST_INSTALL_FUNC" != "null" ]; then
Expand Down

0 comments on commit cea86a1

Please sign in to comment.