git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHarald Pfeiffer <coding _ lirion.de> 2019-11-03 12:47:17 +0100
committerHarald Pfeiffer <coding _ lirion.de> 2019-11-03 12:47:17 +0100
commit39319abb3be61599601b6242432123705a879df7 (patch)
treecefb852d741dd158ae46037b00a8f9553419c8c1 /etc
downloadrhel-scripts-39319abb3be61599601b6242432123705a879df7.tar.bz2
InComm
Diffstat (limited to 'etc')
-rw-r--r--etc/sudoers.d/maint5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/sudoers.d/maint b/etc/sudoers.d/maint
new file mode 100644
index 0000000..d02225f
--- /dev/null
+++ b/etc/sudoers.d/maint
@@ -0,0 +1,5 @@
+%maint ALL=(ALL) NOPASSWD:/usr/bin/snap refresh, /usr/bin/needs-restarting, /usr/bin/dnf needs-restarting
+# 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