~ubuntu-branches/ubuntu/quantal/sudo/quantal-security

« back to all changes in this revision

Viewing changes to debian/sudo.preinst

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2011-11-24 10:48:58 UTC
  • Revision ID: package-import@ubuntu.com-20111124104858-aitx4gyqet3223x4
Tags: 1.8.3p1-1ubuntu2
* debian/sudo.preinst:
  - updated to avoid conffile prompt by migrating to the new sudoers file
    changes in Precise. (LP: #894410)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# See the man page for details on how to write a sudoers file.
25
25
#
26
26
Defaults        env_reset
 
27
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
27
28
 
28
29
# Host alias specification
29
30
 
40
41
# Allow members of group sudo to execute any command
41
42
%sudo   ALL=(ALL:ALL) ALL
42
43
 
 
44
# See sudoers(5) for more information on "#include" directives:
 
45
 
43
46
#includedir /etc/sudoers.d
44
47
EOF
45
48
}
97
100
        1e6fde53694ccf2d1424c41a1cb68a47 )
98
101
        write_verbatim_sudoers
99
102
        ;;
100
 
        # natty, when user-setup was run
 
103
        # natty and oneiric, when user-setup was run
101
104
        8352f26aab41eab146a021a39a877dab )
102
105
        write_verbatim_sudoers
103
106
        ;;
104
 
        # natty, when *no* user-setup was run
 
107
        # natty and oneiric, when *no* user-setup was run
105
108
        9804cf9c77d63bedda288094d64f29ee )
106
109
        write_verbatim_sudoers
107
110
        ;;
120
123
 
121
124
case "$1" in
122
125
    install|upgrade)
123
 
        if dpkg --compare-versions "$2" le "1.7.4p4-5ubuntu5"; then
 
126
        if dpkg --compare-versions "$2" le "1.8.3p1-1ubuntu1"; then
124
127
            avoid_conffile_prompt
125
128
        fi
126
129
    ;;