X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=keyscript-on;h=98d15486a3af5752d3ae09eb2b7c0279b50a984f;hb=d67edcdca8795a4bca116aa532d02dda246a6f53;hp=8f66f7c4c8e499787d64f758c4da10f9572469a1;hpb=9c77c557e60d21caceeef1e78e35b35ed968fca9;p=distro-setup diff --git a/keyscript-on b/keyscript-on index 8f66f7c..98d1548 100755 --- a/keyscript-on +++ b/keyscript-on @@ -14,7 +14,6 @@ if [[ $- != *i* ]]; then exec &>>/var/log/keyscript-on.log echo "$0: starting. $(date)" fi -rootn=1 sed="sed --follow-symlinks" @@ -32,7 +31,7 @@ if [[ $INVOCATION_ID ]]; then # exists when /a is unmounted. source /dev/shm/iank-status fi - if [[ $MAIL_HOST && $MAIL_HOST != $HOSTNAME ]]; then + if [[ $MAIL_HOST && $MAIL_HOST != "$HOSTNAME" ]]; then echo "$0: exiting early: running under systemd as MAIL_HOST" exit 0 fi