Skip to content

Commit

Permalink
UCS: fixes a bug in bareos-dir-restart-on-change
Browse files Browse the repository at this point in the history
bareos-dir-restart-on-change did call itself, causing a infinite loop
instead of calling bareos-dir-restart.
This is fixed now. Without this fix, changes done via the UCS
Webinterface did trigger this problem. This script is called once a day via
cron.
  • Loading branch information
joergsteffens committed Feb 9, 2017
1 parent 02e08d5 commit cdea114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/univention/bareos-dir-restart-on-change
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# and bareos-dir test succeeds (without manual editing the config files, this should always be the case)
# restart bareos-dir
cd /etc/bareos/autogenerated
test clients.include -nt .timestamp -o ! -f .timestamp && /usr/share/univention-bareos/bareos-dir-restart-on-change && touch .timestamp
test clients.include -nt .timestamp -o ! -f .timestamp && /usr/share/univention-bareos/bareos-dir-restart && touch .timestamp

0 comments on commit cdea114

Please sign in to comment.