14 lines
304 B

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