diff options
author | mail_redacted_for_web | 2019-11-03 12:47:17 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2019-11-03 12:47:17 +0100 |
commit | 39319abb3be61599601b6242432123705a879df7 (patch) | |
tree | cefb852d741dd158ae46037b00a8f9553419c8c1 /etc/sudoers.d/maint | |
download | rhel-scripts-39319abb3be61599601b6242432123705a879df7.tar.bz2 |
InComm
Diffstat (limited to 'etc/sudoers.d/maint')
-rw-r--r-- | etc/sudoers.d/maint | 5 |
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 |