X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fdebian%2Fcitadel-server.postinst;h=8307aaad75b3dd84d710a52f5800e417149706bb;hb=ea729c4c32403b66b79ccff667dbb308859e36a7;hp=7498eb6fee6736709ed4bbac8033a12efa055972;hpb=6bd4383b0f4bb3e3b662615dae442199fed568d8;p=citadel.git diff --git a/citadel/debian/citadel-server.postinst b/citadel/debian/citadel-server.postinst index 7498eb6fe..8307aaad7 100644 --- a/citadel/debian/citadel-server.postinst +++ b/citadel/debian/citadel-server.postinst @@ -1,5 +1,6 @@ #!/bin/sh # postinst script for citadel-server + set -e # source debconf stuff @@ -48,22 +49,21 @@ case "$1" in echo "applying your settings." /usr/lib/citadel-server/setup -q -# we're in a fresh install, so we send the welcome message. - if test -z "$2"; then - export SEPERATOR=2600908b3f21ae7f692b973ed26e212d - export WELCOMEHTML=/usr/share/doc/citadel-server/welcomemail.html - export WELCOMETXT=/usr/share/doc/citadel-server/welcomemail.txt - export FROM=room_citadel_stats@uncensored.citadel.org - export TO=room_lobby - ( - printf "MIME-Version: 1.0\r\nContent-Type: multipart/alternative; \r\n boundary=$SEPERATOR\r\n\r\nThis is a multi-part message in MIME format.\r\n\r\n--$SEPERATOR\r\nContent-Type: text/plain; charset=utf-8\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; - cat $WELCOMETXT - printf "\r\n\r\n--$SEPERATOR\r\nContent-Type: text/html; charset=US-ASCII\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n" - cat $WELCOMEHTML; - printf "\r\n\r\n--$SEPERATOR--\r\n\r\n") | \ - /usr/sbin/citmail -bm -r "$FROM" "$TO" - fi - + # we're in a fresh install, so we send the welcome message. + if test -z "$2"; then + export SEPERATOR=2600908b3f21ae7f692b973ed26e212d + export WELCOMEHTML=/usr/share/doc/citadel-server/welcomemail.html + export WELCOMETXT=/usr/share/doc/citadel-server/welcomemail.txt + export FROM=room_citadel_stats@uncensored.citadel.org + export TO=room_lobby + ( + printf "MIME-Version: 1.0\r\nContent-Type: multipart/alternative; \r\n boundary=$SEPERATOR\r\n\r\nThis is a multi-part message in MIME format.\r\n\r\n--$SEPERATOR\r\nContent-Type: text/plain; charset=utf-8\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; + cat $WELCOMETXT + printf "\r\n\r\n--$SEPERATOR\r\nContent-Type: text/html; charset=US-ASCII\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n" + cat $WELCOMEHTML; + printf "\r\n\r\n--$SEPERATOR--\r\n\r\n") | \ + /usr/sbin/citmail -bm -r "$FROM" "$TO" + fi if test -S /var/run/citadel/citadel.socket; then /usr/sbin/sendcommand "DOWN"