mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Calculaate python version
This commit is contained in:
parent
215975bac0
commit
6bdbae00d7
1 changed files with 2 additions and 1 deletions
|
@ -486,11 +486,12 @@ ln -s -f /opt/saltstack/salt/salt-api %{_bindir}/salt-api
|
|||
|
||||
|
||||
%posttrans cloud
|
||||
PY_VER=$(/opt/saltstack/salt/bin/python3 -c "import sys; sys.stdout.write('{}.{}'.format(*sys.version_info)); sys.stdout.flush();")
|
||||
if [ ! -e "/var/log/salt/cloud" ]; then
|
||||
touch /var/log/salt/cloud
|
||||
chmod 640 /var/log/salt/cloud
|
||||
fi
|
||||
chown -R %{_SALT_USER}:%{_SALT_GROUP} /etc/salt/cloud.deploy.d /var/log/salt/cloud /opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/deploy
|
||||
chown -R %{_SALT_USER}:%{_SALT_GROUP} /etc/salt/cloud.deploy.d /var/log/salt/cloud /opt/saltstack/salt/lib/python${PY_VER}/site-packages/salt/cloud/deploy
|
||||
|
||||
|
||||
%posttrans master
|
||||
|
|
Loading…
Add table
Reference in a new issue