IFS= read -r -d '' y ||:
end_msg_var+="$y"
}
+end() {
+ e "$end_msg_var"
+ echo 0 >~/.local/distro-end
+ if $pending_reboot; then
+ echo "$0: pending reboot and then finished. doing it now."
+ s reboot now
+ else
+ echo "$0: $(date): ending now)"
+ fi
+ exit 0
+}
die() {
printf "$0: %s\n" "$*" >&2; exit 1
}
popularity-contest popularity-contest/participate boolean true
EOF
-########### begin section including li ################
+########### begin section including linode ################
pi ${p2[@]}
###### begin website setup
case $HOSTNAME in
- li)
-
- pi bind9
+ li|l2)
f=/var/lib/bind/db.b8.nz
if [[ ! -e $f ]]; then
ser stop bind9
- rm -f $f.jnl
- install -m 644 -o bind -g bind /p/c/machine_specific/li/bind-initial/db.b8.nz $f
+ s rm -f $f.jnl
+ s install -m 644 -o bind -g bind /p/c/machine_specific/linode/bind-initial/db.b8.nz $f
ser restart bind9
fi
+ ;;&
+ l2)
+ end
+ ;;
+ li)
case $HOSTNAME in
li) domain=iankelling.org ;;
sgo znc
###### stop znc setup #####
-
- echo 0 >~/.local/distro-end
- echo "$0: $(date): ending now)"
- exit 0
+ end
;;
esac
###### end website setup
fi
-e "$end_msg_var"
######### begin stuff belonging at the end ##########
-echo 0 >~/.local/distro-end
-if $pending_reboot; then
- echo "$0: pending reboot and then finished. doing it now."
- s reboot now
-else
- echo "$0: $(date): ending now)"
-fi
-exit 0
+end