summaryrefslogtreecommitdiff
path: root/global/pre-tasks.d/020common-tools
blob: 563fab2bc28a81e4dd3f403d15d80322382f1f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Re-used example from SJD
#

set -e

stamp="$COSMOS_BASE/stamps/common-tools-v02.stamp"

if ! test -f $stamp; then
    apt-get -y update && apt-get -y upgrade && apt-get -y install vim traceroute tcpdump molly-guard less rsync git-core unattended-upgrades ntp wget
    update-alternatives --set editor /usr/bin/vim.basic

    mkdir -p `dirname $stamp`
    touch $stamp
fi