X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=jessie_postinstall.sh;h=9a98836688b4a38bc365d59f69a237a9533c7d65;hb=417ef98841185ec2d84fb5045771b0652ef1b577;hp=e4ea6c739b06eb5f0d0c84b7eb559daac54e733c;hpb=85f1e1508089bbaa01b9a5240f802dd2ac817544;p=config diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index e4ea6c7..9a98836 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -26,7 +26,7 @@ if [ "$3" = "plomlompom.com" ]; then elif [ "$3" = "test.plomlompom.com" ]; then hostname="test.plomlompom" elif [ "$2" = "public" ]; then - hostname="twtxt.plomlompom" + hostname="htwtxt.plomlompom" elif [ "$2" = "X200s" ]; then hostname="X220s" elif [ "$2" = "T450s" ]; then @@ -225,7 +225,6 @@ if [ "$1" = "server" ]; then su - plom -c 'git clone https://github.com/plomlompom/htwtxt $GOPATH/src/htwtxt' su - plom -c 'go get htwtxt' path=`su - plom -c 'echo $GOPATH/bin/htwtxt'` - #setcap 'cap_net_bind_service=+ep' $path su - plom -c 'mkdir -p ~/htwtxt' cp config/systemfiles/htwtxt_restart_reminder.service \ /etc/systemd/system/htwtxt_restart_reminder.service @@ -248,10 +247,27 @@ if [ "$1" = "server" ]; then # Set up plomlombot logging infrastructure. mkdir -p /var/www/html/irclogs/ - ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/3c0248e76a1de3a6ee5bf3421f7379b0/logs/ /var/www/html/irclogs/zrolaps/ + ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/3c0248e76a1de3a6ee5bf3421f7379b0/logs/ /var/www/html/irclogs/zrolaps touch /var/www/password_irclogs_zrolaps - ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/657eea42f86866f2954d39f92a6c71ff/logs/ /var/www/html/irclogs/nodrama.de/ + ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/657eea42f86866f2954d39f92a6c71ff/logs/ /var/www/html/irclogs/nodrama.de touch /var/www/password_irclogs_nodrama_de + ln -s /home/plom/plomlombot_db/6f322d574618816aa2d6d1ceb4fd2551/a083c5d5efca3734294fa656692990b6/logs/ /var/www/html/irclogs/freakazoid + touch /var/www/password_irclogs_freakazoid + + # Set up other web-served directories. + su - plom -c 'mkdir -p /home/plom/dump' + ln -s /home/plom/dump/ /var/www/html/dump + su - plom -c 'mkdir -p /home/plom/geheim' + ln -s /home/plom/geheim/ /var/www/html/geheim + su - plom -c 'mkdir -p /home/plom/lesekreis' + ln -s /home/plom/geheim/ /var/www/html/lesekreis + su - plom -c 'mkdir -p /home/plom/lifelog' + ln -s /home/plom/lifelog/ /var/www/html/lifelog + su - plom -c 'git init --bare /home/plom/lifelog.git' + su - plom -c 'touch /home/plom/lifelog.git/hooks/post-update' + su - plom -c 'chmod a+x /home/plom/lifelog.git/hooks/post-update' + su - plom -c 'echo "#!/bin/sh" > /home/plom/lifelog.git/hooks/post-update' + su - plom -c 'echo "GIT_WORK_TREE=/home/plom/lifelog git checkout -f" >> /home/plom/lifelog.git/hooks/post-update' fi elif [ "$1" = "thinkpad" ]; then @@ -310,4 +326,4 @@ passwd plom rm jessie_postinstall.sh # Finalize everything with a reboot. -echo 'You may reboot now with the "reboot" command unless there's more to do.' +echo "You may reboot now with the 'reboot' command unless there's more to do."