Browse Source

fix: [logrotate] avoid circular dependence in final ``docker-compose.yml``

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
test 1.3.0
Valentin Lab 5 years ago
parent
commit
14eb8c12cf
  1. 2
      logrotate/hooks/log_rotate-relation-joined

2
logrotate/hooks/log_rotate-relation-joined

@ -4,6 +4,7 @@
## if I'm linked to a schedule-command, then add the scheduler dependency to source service
if read-0 ts _ _ < <(get_service_relation "$SERVICE_NAME" "schedule-command"); then
if [ "$ts" != "$MASTER_BASE_SERVICE_NAME" ]; then
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
@ -11,6 +12,7 @@ services:
- \"$ts\"
"
fi
fi
exit 0

Loading…
Cancel
Save