ovisnost o alpine, sredjuje alternatives, itd...
[pine-cn.git] / debian / postinst
1 #!/bin/sh -e
2
3 if [ "$1" = "configure" ]; then
4   update-alternatives --install /usr/bin/pine pine /usr/bin/alpine 50 \
5     --slave /usr/share/man/man1/pine.1.gz pine.1.gz /usr/share/man/man1/alpine.1.gz
6 fi
7
8 if [ ! -f /etc/pine.conf ]; then
9   echo "CN: Creating configuration file /etc/pine.conf..."
10   touch /etc/pine.conf
11 fi
12
13 if ! grep -q ^smtp-server /etc/pine.conf; then
14   echo "CN: Adding smtp-server to /etc/pine.conf..."
15   echo smtp-server=localhost >> /etc/pine.conf
16 fi