Skip to content

Commit

Permalink
fedora: Adjust better for DNF5
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Jan 17, 2025
1 parent e89bbd5 commit e5e6bf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dnf-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ apply_updates = yes
# Also in setup.sh
if [ $(ps --no-headers -o comm 1) = "systemd" ]; then
sudo systemctl enable --now dnf5-automatic.timer
systemctl status dnf-automatic-install.timer
systemctl status dnf5-automatic.timer
else
echo "Not enabling dnf5-automatic.timer, because no systemd"
fi
Expand Down
2 changes: 1 addition & 1 deletion docs/minimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
2. GNOME Settings Users: Auto Login + Fingerprint!
3. IR WebCam Auth?
4. `sudo dnf install fish fira-code-fonts dnf-automatic dnf-plugins-core`
5. `sudo systemctl enable --now dnf-automatic-install.timer`
5. `sudo systemctl enable --now dnf5-automatic.timer`
6. `~/.inputrc`
7. `~/.config/fish/config.fish`
8. [`~/.config/fish/conf.d/needs-restarting.fish`](https://github.com/vorburger/vorburger-dotfiles-bin-etc/blob/main/dotfiles/fish/conf.d/needs-restarting.fish)
Expand Down
1 change: 1 addition & 0 deletions dotfiles/fish/conf.d/needs-restarting.fish
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ if status is-interactive
if not test -f $daily_flag_file; or not test (date -r $daily_flag_file +%Y-%m-%d) = $today

# On Fedora (from https://bugzilla.redhat.com/show_bug.cgi?id=2048113)
# TODO https://github.com/rpm-software-management/dnf-plugins-core/issues/575 would be sweet?
test -f /usr/bin/dnf && not dnf needs-restarting -r -s >/dev/null && not dnf needs-restarting -r -s && echo && uptime -p

# On Debian
Expand Down

0 comments on commit e5e6bf4

Please sign in to comment.