1
0
Fork 0
mirror of https://gitlab.easter-eggs.com/ee/ldapsaisie.git synced 2024-12-22 16:33:48 +01:00
ldapsaisie/debian/ldapsaisie.preinst
Benjamin Renard d05a1f7404 Move /var/tmp/ldapsaisie to /var/cache/ldapsaisie
Move /var/tmp/ldapsaisie to /var/cache/ldapsaisie to be compatible with
  PrivateTmp=True directive of Apache systemd unit file (Debian Strech).
2018-01-08 19:53:45 +01:00

11 lines
261 B
Bash

#!/bin/sh
case "$1" in
install|upgrade)
if [ -d /var/tmp/ldapsaisie -a -n "$( ls /var/tmp/ldapsaisie 2>/dev/null )" ]
then
[ ! -d /var/cache/ldapsaisie/ ] && mkdir /var/cache/ldapsaisie/
mv /var/tmp/ldapsaisie/* /var/cache/ldapsaisie/
fi
;;
esac