trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
-if [[ ! $SUDO_USER || $EUID == 0 ]]; then
+if [[ $EUID == 0 && ! $SUDO_USER ]]; then
echo "$0: error: requires running as nonroot or sudo"
exit 1
fi
source /a/bin/bash_unpublished/source-state
fi
-if [[ $HOSTNAME == $MAIL_HOST ]]; then
+if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
# arbtt disabled for now
#DISPLAY=:0 arbtt-capture --sample-rate=10 &
sudo systemctl start rss2email.timer
sudo systemctl enable rss2email.timer
+ sudo systemctl start btrbk.timer
+ sudo systemctl enable btrbk.timer
else
sudo systemctl stop rss2email.timer