From 9ba139890b3537f492b5ce0365e0ba410685e3f6 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Tue, 5 Jun 2018 16:30:36 +0200 Subject: [PATCH] new: [host] added ``lxc-shorewall-repair`` in ``cron`` job. --- precise/host/hooks/install.d/90-shorewall.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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