diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-20 04:04:36 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-20 04:04:36 +0000 |
commit | 7e108c74958ec076a3734822f61f145d0d69547f (patch) | |
tree | 5af7d8df8a09ee699544a24ce149876c1cdee06e /core/sudo/sudo.install | |
parent | 8640bbf496b9d8a232da91e1db43466797f86861 (diff) |
Thu Mar 20 04:00:11 UTC 2014
Diffstat (limited to 'core/sudo/sudo.install')
-rw-r--r-- | core/sudo/sudo.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/sudo/sudo.install b/core/sudo/sudo.install new file mode 100644 index 000000000..1369cc122 --- /dev/null +++ b/core/sudo/sudo.install @@ -0,0 +1,19 @@ +post_install() { + if type -P systemd-tmpfiles >/dev/null; then + systemd-tmpfiles --create sudo.conf + fi +} + +pre_upgrade() { + # Permissions of /var/db/sudo were changed from 0700 to 0711 in sudo 1.8.10 + # http://www.sudo.ws/repos/sudo/rev/5c38d77a2d0c + if (($(vercmp $2 1.8.10-1) < 0)); then + chmod 0711 var/db/sudo + fi +} + +post_upgrade() { + post_install +} + +# vim:set ts=2 sw=2 et: |