X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=jessie_start_server.sh;h=dcdfbf4bcdcac801f4559388cd74e9feb0553b6e;hb=52810a2158f5c9af7cd4fbef11a903b27a79e7f1;hp=1ce290040790b4dfe62072045bc8a80915de25fb;hpb=b5f107cf1ca0c4eb9a1ea563f752babbbd17db73;p=config diff --git a/jessie_start_server.sh b/jessie_start_server.sh index 1ce2900..dcdfbf4 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -84,10 +84,12 @@ su plom -c 'mkdir -p /home/plom/.vimbackups/' # Set up openssh-server. apt-get -y install openssh-server -# Set up mail client system. -apt-get -y install getmail4 procmail mutt -su plom -c 'mkdir -p /home/plom/mail' +# Set up mail system. +apt-get -y install getmail4 procmail mutt postfix maildrop +su plom -c 'mkdir -p /home/plom/mail/' su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}' +su plom -c 'mkdir -p /home/plom/mail/new_inbox/{cur,new,tmp}' +cp config/systemfiles/mail.cf /etc/postfix/main.cf # Set up screen. apt-get -y install screen @@ -97,18 +99,7 @@ apt-get -y install iputils-ping # Set up irssi. apt-get -y install irssi -cat > /etc/systemd/system/irssi.service << EOF -[Unit] -Description=irssi screen - -[Service] -Type=forking -User=plom -ExecStart=/bin/sh /home/plom/config/other/screen-irssi.sh - -[Install] -WantedBy=multi-user.target -EOF +cp config/systemfiles/irssi.service /etc/systemd/system/irssi.service systemctl enable /etc/systemd/system/irssi.service # Clean up.