Check systemctl binary before calling it

This commit is contained in:
Megan Wilhite 2023-04-17 06:55:48 -06:00 committed by Pedro Algarvio
parent 9804cab90e
commit 5ac22b653e

View file

@ -1,3 +1,3 @@
adduser --system salt --group
chown -R salt:salt /etc/salt /var/log/salt /opt/saltstack/salt/ /var/cache/salt/ /var/run/salt
systemctl enable salt-master
if command -v systemctl; then systemctl enable salt-master; fi