Ensure any pre-exiting incorrect ufw directory /etc/ufw/applications.d/salt-master is removed

This commit is contained in:
David Murphy 2023-10-31 15:06:51 -06:00 committed by Pedro Algarvio
parent 90fe04b304
commit d891daa222

View file

@ -10,5 +10,9 @@ case "$1" in
find ${SALT_HOME} /etc/salt /var/log/salt /var/cache/salt /var/run/salt \
\! \( -path /etc/salt/cloud.deploy.d\* -o -path /var/log/salt/cloud -o -path /opt/saltstack/salt/lib/python${PY_VER}/site-packages/salt/cloud/deploy\* \) -a \
\( -user ${SALT_USER} -o -group ${SALT_GROUP} \) -exec chown root:root \{\} \;
# remove incorrectly installed ufw salt-master directory - issue 57712
test -d /etc/ufw/applications.d/salt-master && rm -rf /etc/ufw/applications.d/salt-master || /bin/true
;;
esac