mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
19 lines
604 B
Text
19 lines
604 B
Text
. /usr/share/debconf/confmodule
|
|
|
|
case "$1" in
|
|
configure)
|
|
db_get salt-master/user
|
|
if [ "$RET" != "root" ]; then
|
|
if [ ! -e "/var/log/salt/master" ]; then
|
|
touch /var/log/salt/master
|
|
chmod 640 /var/log/salt/master
|
|
fi
|
|
if [ ! -e "/var/log/salt/key" ]; then
|
|
touch /var/log/salt/key
|
|
chmod 640 /var/log/salt/key
|
|
fi
|
|
chown -R $RET:$RET /etc/salt/pki/master /etc/salt/master.d /var/log/salt/master /var/log/salt/key /var/cache/salt/master /var/run/salt/master
|
|
fi
|
|
if command -v systemctl; then systemctl enable salt-master; fi
|
|
;;
|
|
esac
|