done
has_p() { iank-dev || x2 || frodo || tp; }
has_x() { ! { lj || li || demohost; }; }
+linode() { lj || li; }
encrypted() { has_p; }
shopt -s extglob
;;
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"
# 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
# /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.
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
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,