git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2020-06-01 09:31:51 +0200
committerHarald Pfeiffer <coding _ lirion.de> 2020-06-01 09:31:51 +0200
commitbce94c9f77eebe4fc9bb0b58afe04f5c276532de (patch)
tree4600dc6d913583a0b5c3dab2b1a281c777e52e9a /etc
parentc9fabd2b3f14cbbdb3453430fa022996407aa846 (diff)
downloadrhel-scripts-bce94c9f77eebe4fc9bb0b58afe04f5c276532de.tar.bz2
condensed reboot summary, reboot summary in any case, updated sudoers
Diffstat (limited to 'etc')
-rw-r--r--etc/sudoers.d/maint8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/sudoers.d/maint b/etc/sudoers.d/maint
index d02225f..647cc64 100644
--- a/etc/sudoers.d/maint
+++ b/etc/sudoers.d/maint
@@ -1,5 +1,9 @@
-%maint ALL=(ALL) NOPASSWD:/usr/bin/snap refresh, /usr/bin/needs-restarting, /usr/bin/dnf needs-restarting
+%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf --refresh -y upgrade --color true, /usr/bin/dnf makecache, /usr/bin/dnf check-update
+%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf check-upgrade, /usr/bin/snap refresh, /usr/bin/needs-restarting, /usr/bin/dnf needs-restarting -C --color true,/usr/bin/dnf needs-restarting -r
# Using -C -q instead of -Cq because yum sucks at this. dnf can cope with it, but in case of
# moving forth to a yum-only system...
%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q makecache,/usr/bin/dnf -C -q check-upgrade
-%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q -y upgrade
+%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf makecache,/usr/bin/dnf -C check-upgrade
+%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf -q -y upgrade,/usr/bin/dnf -y upgrade
+%maint ALL=(ALL) NOPASSWD:/usr/sbin/shutdown -P +1,/usr/sbin/poweroff,/usr/sbin/reboot
+%maint ALL=(ALL) NOPASSWD:/usr/bin/dnf needs-restarting -C -r --color true, /usr/bin/dnf needs-restarting -C