Browse Source

new: [host] added ``lxc-shorewall-repair`` in ``cron`` job.

postgres
Valentin Lab 7 years ago
parent
commit
9ba139890b
  1. 15
      precise/host/hooks/install.d/90-shorewall.sh

15
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

Loading…
Cancel
Save