git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
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