diff --git a/dnf-install.sh b/dnf-install.sh index d6b70d6..d723ff7 100755 --- a/dnf-install.sh +++ b/dnf-install.sh @@ -61,6 +61,8 @@ else echo "Not enabling dnf-automatic-install.timer, because no systemd" fi +./flatpack-install.sh + sudo dnf update -y sudo dnf remove -y "libreoffice*" diff --git a/flatpack-install.sh b/flatpack-install.sh new file mode 100755 index 0000000..e4de075 --- /dev/null +++ b/flatpack-install.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +set -euxo pipefail + +cp systemd/flatpak-update.service systemd/flatpak-update.timer ~/.config/systemd/user/ +systemctl --user enable flatpak-update.timer +systemctl --user start flatpak-update.timer diff --git a/systemd/flatpak-update.service b/systemd/flatpak-update.service new file mode 100644 index 0000000..598bbd7 --- /dev/null +++ b/systemd/flatpak-update.service @@ -0,0 +1,6 @@ +[Unit] +Description=Update Flatpak applications + +[Service] +Type=oneshot +ExecStart=/usr/bin/flatpak update -y diff --git a/systemd/flatpak-update.timer b/systemd/flatpak-update.timer new file mode 100644 index 0000000..7a24523 --- /dev/null +++ b/systemd/flatpak-update.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Daily Flatpak application update + +[Timer] +# Or for a specific time: OnCalendar=*-*-* 03:00:00 +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target