2024-07-25 14:52:23 -06:00
|
|
|
#!/bin/sh
|
2024-05-10 09:35:40 -06:00
|
|
|
|
2024-04-25 15:43:37 -06:00
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
|
2023-05-03 00:04:00 -07:00
|
|
|
case "$1" in
|
|
|
|
configure)
|
2024-04-25 15:43:37 -06:00
|
|
|
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;")
|
2024-05-01 13:27:27 -06:00
|
|
|
chown -R $RET:$RET /etc/salt/cloud.deploy.d /opt/saltstack/salt/lib/python${PY_VER}/site-packages/salt/cloud/deploy
|
2024-04-25 15:43:37 -06:00
|
|
|
fi
|
2023-05-03 00:04:00 -07:00
|
|
|
;;
|
|
|
|
esac
|