4
# Fix world-readable permissions on /etc/cobbler/users.digest if upgrading
5
# from a version which had it set incorrectly by default, the file is still
6
# there and still has the original incorrect permissions (LP: #858860).
8
if [ "$1" = "upgrade" ] \
9
&& dpkg --compare-versions "$2" lt "2.2.2-0ubuntu14" \
10
&& [ -f /etc/cobbler/users.digest \
11
-a `stat -c%a /etc/cobbler/users.digest` = "644" ]; then
12
chmod 600 /etc/cobbler/users.digest