File: krb5-sync-tools.postinst

package info (click to toggle)
krb5-sync 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,556 kB
  • ctags: 796
  • sloc: sh: 11,750; ansic: 7,181; perl: 663; makefile: 138
file content (17 lines) | stat: -rwxr-xr-x 437 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

# Create the spool lock file on package installation since krb5-sync-backend
# requires that it exist.  The module will create it as needed, but doesn't
# guarantee that it's already there.
if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
    if [ ! -f /var/spool/krb5-sync/.lock ] ; then
        touch /var/spool/krb5-sync/.lock
        chmod 600 /var/spool/krb5-sync/.lock
    fi
fi

#DEBHELPER#

exit 0