debian/krb5-sync-tools.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | # Create the spool lock file on package installation since krb5-sync-backend |
| 6 | # requires that it exist. The module will create it as needed, but doesn't |
| 7 | # guarantee that it's already there. |
| 8 | if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then |
| 9 | if [ ! -f /var/spool/krb5-sync/.lock ] ; then |
| 10 | touch /var/spool/krb5-sync/.lock |
| 11 | chmod 600 /var/spool/krb5-sync/.lock |
| 12 | fi |
| 13 | fi |
| 14 | |
| 15 | #DEBHELPER# |
| 16 | |
| 17 | exit 0 |