diff --git a/precise/host/hooks/install.d/90-shorewall.sh b/precise/host/hooks/install.d/90-shorewall.sh index ccdc34c..9a74a56 100755 --- a/precise/host/hooks/install.d/90-shorewall.sh +++ b/precise/host/hooks/install.d/90-shorewall.sh @@ -1,6 +1,9 @@ #!/bin/bash +## Depends lxc-scripts installed + + ## ## Install ## @@ -97,6 +100,18 @@ fi EOF +## +## lxc-scripts +## + +[ -d "/opt/apps/lxc-scripts" ] || { + echo "Error: required 'lxc-scripts' not installed." >&2 + exit 1 +} + +apt-get install -y moreutils ## needed because ``ts`` is used in this script +ln -sf /opt/apps/lxc-scripts/etc/cron.d/lxc-shorewall-repair /etc/cron.d/lxc-shorewall-repair + ## ## Logs