X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=pine-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=68fa9f1ee2865df9620d695cc691b478dbd6c8de;hp=e653912ae3305944c52ac7777ec5b0c2fcd6f7c8;hb=097c7bf65e0780d4ee7ae3415d59e34b74e1cf3f;hpb=a8cd79fefeb93781eda3b247b38eef452f92cebf diff --git a/debian/postinst b/debian/postinst index e653912..68fa9f1 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,6 +1,16 @@ #!/bin/sh -e if [ "$1" = "configure" ]; then - update-alternatives --install /usr/bin/pico pico /usr/bin/nano 50 \ - --slave /usr/share/man/man1/pico.1.gz pico.1.gz /usr/share/man/man1/nano.1.gz + update-alternatives --install /usr/bin/pine pine /usr/bin/alpine 50 \ + --slave /usr/share/man/man1/pine.1.gz pine.1.gz /usr/share/man/man1/alpine.1.gz +fi + +if [ ! -f /etc/pine.conf ]; then + echo "CN: Creating configuration file /etc/pine.conf..." + touch /etc/pine.conf +fi + +if ! grep -q ^smtp-server /etc/pine.conf; then + echo "CN: Adding smtp-server to /etc/pine.conf..." + echo smtp-server=localhost >> /etc/pine.conf fi