Remove /opt/salt instead of /opt/salt/bin

This commit is contained in:
twangboy 2017-08-18 12:19:04 -06:00
parent 2dd62aa1da
commit ef8a14cdf9

View file

@ -118,11 +118,11 @@ if [ -L "$SBIN_DIR/salt-config" ]; then
fi
###############################################################################
# Remove the $BIN_DIR directory
# Remove the $INSTALL_DIR directory
###############################################################################
if [ -d "$BIN_DIR" ]; then
echo "Cleanup: Removing $BIN_DIR" >> "$TEMP_DIR/preinstall.txt"
rm -rf "$BIN_DIR"
if [ -d "$INSTALL_DIR" ]; then
echo "Cleanup: Removing $INSTALL_DIR" >> "$TEMP_DIR/preinstall.txt"
rm -rf "$INSTALL_DIR"
echo "Cleanup: Removed Successfully" >> "$TEMP_DIR/preinstall.txt"
fi