mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 15:47:32 +02:00
Update to 2022-03-07 14:00
This commit is contained in:
17
roles/unmaintained/wh_backend/templates/wh-acld.j2
Normal file
17
roles/unmaintained/wh_backend/templates/wh-acld.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/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
|
Reference in New Issue
Block a user