summaryrefslogtreecommitdiff
path: root/ucs-3.x/03-univention-install-kolab-mta.sh
blob: 6a3576a9884d7e932ce471f80103bde239798369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

echo -n "Updating package database ... "
apt-get update >/dev/null 2>&1
echo "DONE."

echo "Showing you 'apt-cache policy kolab-mta' for quick verification:"
echo ""
echo "<apt-cache>"
apt-cache policy kolab-mta
echo "</apt-cache>"
echo ""

read -n 1 -p "Does this look OK? [Y/n] " ANSWER
echo ""

if [ "${ANSWER}" == "n" -o "${ANSWER}" == "N" ]; then
    echo "Aborting!"
    exit 1
else
    echo "Now installing the kolab-mta package"
fi

univention-install kolab-mta 2>&1 | tee univention-install-kolab-mta.log