mirror of
https://github.com/saltstack/salt.git
synced 2025-04-15 09:10:20 +00:00
Don't hardcode the python version on pkg/debian/salt-cloud.postinst
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
c6e2bd18e9
commit
ae14412da3
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
case "$1" in
|
||||
configure)
|
||||
chown -R salt:salt /etc/salt/cloud.deploy.d /opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/deploy
|
||||
PY_VER=$(/opt/saltstack/salt/bin/python3 -c "import sys; sys.stdout.write('{}.{}'.format(*sys.version_info)); sys.stdout.flush;")
|
||||
chown -R salt:salt /etc/salt/cloud.deploy.d /opt/saltstack/salt/lib/python${PY_VER}/site-packages/salt/cloud/deploy
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Reference in a new issue