#!/bin/sh

set -e
cd /etc

if ! test -f news/server
then
    if ! test -d news
    then
        mkdir news
        chown news.news news
        chmod 2755 news
    fi

    echo -n \
    'What news server (NNTP server) should I use for reading
 - enter its full name: '

    read server

    echo $server > news/server

fi

if ! test -f mailname 
then
    echo -n \
    'What is the mail name of this machine (the name after
the @): '

    read mailname

    echo $mailname > mailname
fi
