small fixes and update for webserver
authorIan Kelling <ian@iankelling.org>
Sat, 27 Aug 2016 19:45:27 +0000 (12:45 -0700)
committerIan Kelling <ian@iankelling.org>
Sat, 27 Aug 2016 19:45:27 +0000 (12:45 -0700)
distro-begin
distro-end
postfix-setup

index a37a19b86006691e1229cd630bdd625795181042..222eb5ceca2ece5b8b9cccacce59bac8368b051e 100755 (executable)
@@ -77,6 +77,7 @@ for f in iank-dev htpc treetowl x2 frodo tp li lj demohost; do
 done
 has_p() { iank-dev || x2 || frodo || tp; }
 has_x() { ! { lj || li || demohost; }; }
+linode() { lj || li; }
 encrypted() { has_p; }
 
 shopt -s extglob
@@ -190,6 +191,11 @@ case $distro in
         ;;
 esac
 
+if linode; then
+    sudo sed -i '/^127\.0\.1\.1/d' /etc/hosts
+    echo "127.0.1.1 $HOSTNAME.lan $HOSTNAME" | sudo tee -a /etc/hosts
+fi
+
 
 if [[ $EUID == 0 ]]; then
     echo "$0: running as root. exiting now that users are setup"
@@ -618,6 +624,7 @@ fi
 # work desktop doesnt need gpg stuff, but it doesnt hurt
 s dd of=/etc/profile.d/environment.sh <<'EOF'
 # IAN: EDIT THIS FROM /a/bin/distro-setup/distro-begin
+export ACME_TINY_WRAPPER_CERT_DIR=/p/c/machine_specific/$HOSTNAME/webservercerts
 
 if [ -f $HOME/path_add-function ]; then
     . $HOME/path_add-function
index 2c638206b74f85476ce892899b7c0b49e377019c..897e4e95bd2bce1480f472091031ce6771410e2c 100755 (executable)
@@ -213,7 +213,7 @@ esac
 # /usr/share/doc/unattended-upgrades# cat README.md
 # /etc/apt/apt.conf.d/50unattended-upgrades
 if isdebian; then
-    debian-setup-auto-update
+    setup-debian-auto-update
 fi
 
 # we've got a few dependencies later on, so install them now.
@@ -228,11 +228,10 @@ case $HOSTNAME in
             li) domain=iankelling.org ;;
         esac
         /a/h/setup.sh $domain
-        s rld /a/h/_site/ /var/www/$domain/html
-
-        curl https://$domain/git/?p=mediawiki-setup/.git;a=blob_plain;f=mw-setup-script;hb=HEAD | bash
-        $src/phab-setup
+        /a/h/build.rb
 
+        sudo -E /a/bin/mediawiki-setup/mw-setup-script
+        #$src/phab-setup
 
         echo "$0: $(date): ending now)"
         exit 0
index 2ecbd6b4be047c8ce90c4c6ef8471fbe90f165bf..fdd739beee273e31dc0a79177d2448992764ef86 100755 (executable)
@@ -83,6 +83,11 @@ else
 fi
 e $forward > ~/.forward
 e $forward | s tee /root/.forward
+
+# linode image has a root alias. completely useless, remove it.
+sudo sed -i '/^root:/d' /etc/aliases
+
+
 s newaliases
 
 # if I wanted the from address to be renamed and sent to a different address,