X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=primary-setup;h=2ced3c9b831fa952279e91675b0224d07a44d344;hb=d6def754cd241538c61456536b52ee51cbd85b42;hp=8ea0d06e4a80431288b4857dfe404028e2b51d07;hpb=f46ee5570766081a5a73ce0d2132c8a06ee966fb;p=distro-setup diff --git a/primary-setup b/primary-setup index 8ea0d06..2ced3c9 100755 --- a/primary-setup +++ b/primary-setup @@ -40,19 +40,23 @@ if [[ -e /dev/shm/iank-status ]]; then fi +if [[ $HOSTNAME == "$MAIL_HOST" || $HOSTNAME == kd ]]; then + m systemctl --now enable btrbk.timer +else + m systemctl --now disable btrbk.timer +fi + + if dpkg -s rss2email &>/dev/null; then if [[ $HOSTNAME == "$MAIL_HOST" ]]; then # arbtt disabled for now #DISPLAY=:0 arbtt-capture --sample-rate=10 & m systemctl --now enable rss2email.timer - # off is in mail-setup. no reason for this to be in the rss2email block. - m systemctl --now enable btrbk.timer else files=(/sysd-mail-once/btrbk*) if (( ${#files[@]} )); then rm -f ${files[@]} fi - m systemctl --now disable btrbk.timer m systemctl stop rss2email.service m systemctl --now disable rss2email.timer