fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
375 B

  1. #!/bin/bash
  2. ## Should be executable N time in a row with same result.
  3. set -e
  4. . lib/common
  5. service_def=$(get_compose_service_def "$SERVICE_NAME")
  6. cfg=$(relation-get)
  7. apache_proxy_dir "$cfg" "$service_def"
  8. APACHE_CORE_RULES=$(relation-get apache-core-rules 2>/dev/null) || true
  9. if [ "$APACHE_CORE_RULES" ]; then
  10. apache_core_rules_add "$APACHE_CORE_RULES" || exit 1
  11. fi