17 lines
593 B
Bash
17 lines
593 B
Bash
#!/bin/bash
|
|
#
|
|
# Purpose : Install and enable the timer that checks for a new version of
|
|
# CoreDesktop and shows a GNOME notification (system/update-check).
|
|
# Run by install.sh and on every update (updates.d/16-update-notify.sh)
|
|
# so changes to the units reach existing machines.
|
|
|
|
set -e
|
|
|
|
COREDESKTOP="$HOME/.local/share/coredesktop"
|
|
UNITS="$HOME/.config/systemd/user"
|
|
|
|
mkdir -p "$UNITS"
|
|
cp "$COREDESKTOP"/system/systemd/coredesktop-update-check.{service,timer} "$UNITS/"
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable --now coredesktop-update-check.timer
|