fixes and some improvements
[distro-setup] / primary-setup
index 8ea0d06e4a80431288b4857dfe404028e2b51d07..2ced3c9b831fa952279e91675b0224d07a44d344 100755 (executable)
@@ -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