mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
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).
This commit is contained in:
parent
7c45bfe833
commit
d05a1f7404
3 changed files with 13 additions and 2 deletions
2
debian/dirs
vendored
2
debian/dirs
vendored
|
@ -5,5 +5,5 @@ usr/share
|
|||
usr/share/doc/ldapsaisie
|
||||
usr/local/share/ldapsaisie/conf
|
||||
usr/share/ldapsaisie/local
|
||||
var/tmp/ldapsaisie
|
||||
var/cache/ldapsaisie
|
||||
var/log/ldapsaisie
|
||||
|
|
2
debian/ldapsaisie.links
vendored
2
debian/ldapsaisie.links
vendored
|
@ -1,4 +1,4 @@
|
|||
var/tmp/ldapsaisie usr/share/ldapsaisie/tmp
|
||||
var/cache/ldapsaisie usr/share/ldapsaisie/tmp
|
||||
usr/local/share/ldapsaisie usr/share/ldapsaisie/local
|
||||
usr/local/share/ldapsaisie etc/ldapsaisie/local
|
||||
usr/share/ldapsaisie/lang/generate_lang_file.php usr/bin/ldapsaisie-generate-lang-file
|
||||
|
|
11
debian/ldapsaisie.preinst
vendored
Normal file
11
debian/ldapsaisie.preinst
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/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
|
Loading…
Reference in a new issue