X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=jessie_start_server.sh;h=76a9bda58a0a73e777f55c0a3b627c0e1a0787fe;hb=82f076e2dd877f185330864a6ebbe6407717dbb1;hp=2e9e19e4a30a55e6341b7ebdf60a8b4b701c1db2;hpb=2276e38654df99b38ea562f1b01a436df81ee19b;p=config diff --git a/jessie_start_server.sh b/jessie_start_server.sh index 2e9e19e..76a9bda 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -5,9 +5,6 @@ set -e # Set root pw. passwd -# Remove unused .bashrc. -rm ~/.bashrc - # Post-installation reduction. dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > list_white_unsorted echo 'ifupdown' >> list_white_unsorted @@ -72,14 +69,14 @@ locale-gen apt-get -y install ca-certificates apt-get -y install git git clone http://github.com/plomlompom/config -config/symlink.sh +config/bin/symlink.sh # Add user. Remove old user's config/ if it exists. useradd -m -s /bin/bash plom rm /home/plom/.bashrc rm -rf /home/plom/config su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config' -su plom -c '/home/plom/config/symlink.sh server' +su plom -c '/home/plom/config/bin/symlink.sh server' # Set up editor. apt-get -y install vim @@ -96,7 +93,7 @@ apt-get -y install openssh-server 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}' -sed -i 's/^delete = true$/delete = false/g' /home/plom/config/dotfiles_user_server/getmail/getmailrc +sed -i 's/^delete = true$/delete = false/g' /home/plom/config/dotfiles/user/server/getmail/getmailrc DEBIAN_FRONTEND=noninteractive apt-get -y install getmail4 procmail mutt postfix maildrop cp config/systemfiles/main.cf /etc/postfix/main.cf cp config/systemfiles/aliases /etc/aliases