generated from ublue-os/udev-rules
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: standardize flatpak/rpm-ostree update timers (#84)
This adds an override for the Fedora stock rpm-ostreed-automatic.timer and sets it and both the user and system flatpak timers to always run at 4:00AM localtime. If the host machine is suspended or powered down during that time, the timers will execute on next boot. The flatpak update services have been simplified to not request install and to be simple services like rpm-ostreed-automatic.service. Closes #26
- Loading branch information
Showing
7 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=rpm-ostree Automatic Update Trigger | ||
Documentation=man:rpm-ostree(1) man:rpm-ostreed.conf(5) | ||
ConditionPathExists=/run/ostree-booted | ||
|
||
[Timer] | ||
OnCalendar=*-*-* 4:00:00 | ||
|
||
[Install] | ||
WantedBy=timers.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Name: ublue-os-update-services | ||
Packager: ublue-os | ||
Vendor: ublue-os | ||
Version: 0.4 | ||
Version: 0.5 | ||
Release: 1%{?dist} | ||
Summary: Automatic updates for rpm-ostree and flatpak | ||
License: MIT | ||
|
@@ -51,15 +51,20 @@ tar xf %{SOURCE0} -C %{buildroot} --strip-components=2 --exclude etc/rpm-ostreed | |
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/%{_exec_prefix}/lib/systemd/user/flatpak-user-update.service | ||
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/%{_exec_prefix}/lib/systemd/user/flatpak-user-update.timer | ||
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/%{_sysconfdir}/rpm-ostreed.conf | ||
%attr(0644,root,root) %{_datadir}/%{VENDOR}/%{sub_name}/%{_sysconfdir}/systemd/system/rpm-ostreed-automatic.timer | ||
%attr(0644,root,root) %{_exec_prefix}/lib/systemd/system-preset/10-flatpak-system-update.preset | ||
%attr(0644,root,root) %{_exec_prefix}/lib/systemd/system/flatpak-system-update.service | ||
%attr(0644,root,root) %{_exec_prefix}/lib/systemd/system/flatpak-system-update.timer | ||
%attr(0644,root,root) %{_exec_prefix}/lib/systemd/user-preset/10-flatpak-user-update.preset | ||
%attr(0644,root,root) %{_exec_prefix}/lib/systemd/user/flatpak-user-update.service | ||
%attr(0644,root,root) %{_exec_prefix}/lib/systemd/user/flatpak-user-update.timer | ||
%attr(0644,root,root) %{_sysconfdir}/systemd/system/rpm-ostreed-automatic.timer | ||
|
||
|
||
%changelog | ||
* Sat Jul 22 2023 Benjamin Sherman <[email protected]> - 0.5 | ||
- Set flatpak and rpm-ostree upgrade timers to run daily at 4am local time | ||
|
||
* Fri Jun 30 2023 gerblesh <[email protected]> - 0.4 | ||
- Add BuildRequires for rpm-systemd-macros to fix enabling systemd services and uninstalling the RPM | ||
|
||
|