mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 00:29:21 +01:00
d05a1f7404
Move /var/tmp/ldapsaisie to /var/cache/ldapsaisie to be compatible with PrivateTmp=True directive of Apache systemd unit file (Debian Strech).
11 lines
261 B
Bash
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
|