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