diff options
author | Leif Johansson <leifj@sunet.se> | 2013-09-02 16:01:50 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2013-09-02 16:01:50 +0200 |
commit | 7515782eb503152dfc3e84fee1260fb10d560df9 (patch) | |
tree | ce0087dc774a156c6a74f11d3af92ef5686b4972 /global/pre-tasks.d/020common-tools |
import
Diffstat (limited to 'global/pre-tasks.d/020common-tools')
-rwxr-xr-x | global/pre-tasks.d/020common-tools | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/global/pre-tasks.d/020common-tools b/global/pre-tasks.d/020common-tools new file mode 100755 index 0000000..eaca6ea --- /dev/null +++ b/global/pre-tasks.d/020common-tools @@ -0,0 +1,16 @@ +#!/bin/sh +# +# Re-used example from SJD +# + +set -e + +stamp="$COSMOS_BASE/stamps/common-tools-v01.stamp" + +if ! test -f $stamp; then + apt-get -y install vim traceroute tcpdump molly-guard less rsync git-core unattended-upgrades ntp + update-alternatives --set editor /usr/bin/vim.basic + + mkdir -p `dirname $stamp` + touch $stamp +fi |