From 7057f93a9a553f4536ac9966af3554650ed7ac78 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Wed, 21 May 2025 14:12:47 -0400 Subject: [PATCH] Moved systemd module to a script --- files/scripts/enableautoupdates.sh | 10 ++++++++++ recipes/components/base-module.yml | 13 +++---------- 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 files/scripts/enableautoupdates.sh diff --git a/files/scripts/enableautoupdates.sh b/files/scripts/enableautoupdates.sh new file mode 100644 index 0000000..c7646e9 --- /dev/null +++ b/files/scripts/enableautoupdates.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Tell build process to exit if there are any errors. +set -oue pipefail + +systemctl enable rpm-ostreed-automatic.timer +systemctl enable podman-auto-update.timer +systemctl --global enable podman-auto-update.timer +systemctl --global enable flatpak-user-update.timer +systemctl enable flatpak-system-update.timer \ No newline at end of file diff --git a/recipes/components/base-module.yml b/recipes/components/base-module.yml index 264ec83..dcc02bf 100644 --- a/recipes/components/base-module.yml +++ b/recipes/components/base-module.yml @@ -13,13 +13,6 @@ modules: - RUN rpm -ivh /ublue-os-luks.noarch.rpm - RUN rpm -ivh /ublue-os-just.noarch.rpm - - type: systemd - system: - enabled: - - rpm-ostreed.automatic.timer - - podman-auto-update.timer - - flatpak-system-update.timer - user: - enabled: - - podman-auto-update.timer - - flatpak-system-update.timer \ No newline at end of file + - type: script + scripts: + - enableautoupdates.sh # using systemd did not work, so using this script instead \ No newline at end of file