This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user