mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
12 lines
472 B
Text
12 lines
472 B
Text
. /usr/share/debconf/confmodule
|
|
|
|
case "$1" in
|
|
configure)
|
|
db_get salt-master/user
|
|
if [ "$RET" != "root" ]; then
|
|
PY_VER=$(/opt/saltstack/salt/bin/python3 -c "import sys; sys.stdout.write('{}.{}'.format(*sys.version_info)); sys.stdout.flush;")
|
|
# TBD DGM what is this salt:salt doing here, should this be $RET:$RET
|
|
chown -R salt:salt /etc/salt/cloud.deploy.d /opt/saltstack/salt/lib/python${PY_VER}/site-packages/salt/cloud/deploy
|
|
fi
|
|
;;
|
|
esac
|