mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-27 15:43:22 +02:00
18 lines
728 B
Plaintext
18 lines
728 B
Plaintext
![]() |
#!/bin/bash -e
|
||
|
|
||
|
while true; do
|
||
|
{% for client in wh_clients %}
|
||
|
{% for app in client.apps %}
|
||
|
{% if app.backend | default(client.backend) | default(wh_defaults.backend) == inventory_hostname %}
|
||
|
if [ -e /opt/wh/{{ client.name }}/apps/{{ app.name }}/tmp/reset -o -e /opt/wh/{{ client.name }}/apps/{{ app.name }}/tmp/reset.txt ]; then
|
||
|
echo Reseting permissions for {{ client.name }} - {{ app.name }}
|
||
|
sh /opt/wh/{{ client.name }}/apps/{{ app.name }}/bin/perms.sh
|
||
|
echo Permissions for {{ client.name }} - {{ app.name }} have been reseted
|
||
|
rm -f /opt/wh/{{ client.name }}/apps/{{ app.name }}/tmp/reset /opt/wh/{{ client.name }}/apps/{{ app.name }}/tmp/reset.txt
|
||
|
fi
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% endfor %}
|
||
|
sleep 5
|
||
|
done
|