summaryrefslogtreecommitdiff
path: root/raveos-updater/raveos-updater.install
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-09-19 18:04:27 +0200
committerNippy <nippy@Nippy-Mac-mini.local>2026-09-19 18:04:27 +0200
commit3eb87a14e133b266ab8d8c634dda3af312474f1f (patch)
tree098ea50e2f159b654f3729c69facc6805556813e /raveos-updater/raveos-updater.install
parentf176110ce0e65756967db40ba2a3fc7d1daa2825 (diff)
downloadRaveOS-PKGBUILD-3eb87a14e133b266ab8d8c634dda3af312474f1f.tar.gz
RaveOS-PKGBUILD-3eb87a14e133b266ab8d8c634dda3af312474f1f.zip
new user settings
Diffstat (limited to 'raveos-updater/raveos-updater.install')
-rw-r--r--raveos-updater/raveos-updater.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/raveos-updater/raveos-updater.install b/raveos-updater/raveos-updater.install
new file mode 100644
index 0000000..f2993fd
--- /dev/null
+++ b/raveos-updater/raveos-updater.install
@@ -0,0 +1,20 @@
+_enable() {
+ if command -v systemctl >/dev/null 2>&1; then
+ systemctl daemon-reload >/dev/null 2>&1 || true
+ systemctl enable --now raveos-updater.timer >/dev/null 2>&1 || true
+ fi
+}
+
+post_install() {
+ _enable
+}
+
+post_upgrade() {
+ _enable
+}
+
+pre_remove() {
+ if command -v systemctl >/dev/null 2>&1; then
+ systemctl disable --now raveos-updater.timer >/dev/null 2>&1 || true
+ fi
+}