Files
david 6770150b11
shellcheck / shellcheck (push) Successful in 11s
fix the fail2ban issues and other things
2026-10-31 08:10:05 -06:00

20 lines
722 B
Bash

#!/bin/bash
#
# Purpose : Install and start the service that pauses a Core's email when the
# mail server stops taking its password (system/email-watch).
# Run by install.sh and on every update (updates.d/17-email-watch.sh),
# so changes to it reach existing machines.
set -e
COREDESKTOP="$HOME/.local/share/coredesktop"
UNITS="$HOME/.config/systemd/user"
mkdir -p "$UNITS"
cp "$COREDESKTOP/system/systemd/coredesktop-email-watch.service" "$UNITS/"
systemctl --user daemon-reload
systemctl --user enable coredesktop-email-watch.service
# Restart, so it runs the version update just pulled. It doesn't start without
# a Core set up.
systemctl --user restart coredesktop-email-watch.service