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