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