hrcat() { local f; for f; do [[ -f $f ]] || continue; hr; echo "$f"; cat "$f"; done }
-nebulaup() {
- pushd /a/opt
- p=/slackhq/nebula/releases/;
- up=https://github.com/$(curl -s https://github.com$p| grep -o $p'download/[^/]*/nebula-linux-amd64[^"]*' | head -n1)
- if wget -nv -N "$up" |& grep . &>/dev/null || [[ ! -e /a/opt/nebula/nebula ]]; then
- mkdir -p /a/opt/nebula
- tar -C /a/opt/nebula -zxf nebula-linux-amd64.tar.gz
- fi
- popd
-}
-
# get latest hub and run it
# main command to use:
# hub pull-request --no-edit
# note, i had --delete-excluded, but that deletes all files in --exclude-from on
# the remote site, which doesn't make sense, so not sure why i had it.
local p a
- p=(/a/opt/{emacs-debian10{,-nox},mu,emacs} /a/bin /a/exe /a/h /a/c /p/c/machine_specific/vps{,.hosts} /a/opt/nebula)
+ p=(/a/opt/{emacs-debian10{,-nox},mu,emacs} /a/bin /a/exe /a/h /a/c /p/c/machine_specific/vps{,.hosts})
a="-ahviSAXPH --specials --devices --delete --relative --exclude-from=/p/c/li-rsync-excludes"
ret=0
for h in li je bk; do
# EOF
-if [[ -e /etc/nebula-host.crt ]]; then
- r=0
- ser status nebula &>/dev/null || r=$?
- if (( r == 4 )); then
- ser daemon-reload
- fi
- sgo nebula
-fi
-
-
###### begin website setup
case $HOSTNAME in
li|bk|je)
+++ /dev/null
-[Unit]
-Description=nebula
-Wants=basic.target
-After=basic.target network.target
-Before=ssh.service
-
-[Service]
-SyslogIdentifier=nebula
-ExecReload=/bin/kill -HUP $MAINPID
-ExecStart=/a/opt/nebula/nebula -config /etc/nebula-config.yml
-Restart=always
-
-[Install]
-WantedBy=multi-user.target