X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=prof-backup;h=e49cb494a0b121602342e3dec3ce9125c564a8bf;hb=e72acaee4cf7c394ca0e35b84d3afbd8ef5a4b32;hp=7aefc21540e27f518e144d11584f173a65b8f1b0;hpb=3f6c5b1f2c72614ee8cb4d0e4325e7beddda9c04;p=distro-setup diff --git a/prof-backup b/prof-backup index 7aefc21..e49cb49 100755 --- a/prof-backup +++ b/prof-backup @@ -17,9 +17,12 @@ # ssh root@kdwg.b8.nz systemctl --now enable profanity if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi -source /a/bin/errhandle/err +source /a/bin/bash-bear-trap/bash-bear source /a/bin/bash_unpublished/source-state +if [[ ! $HOSTNAME ]]; then + HOSTNAME=$(cat /etc/hostname) +fi if [[ $HOSTNAME != "$HOST2" ]]; then exit 0 fi