system/apache-tomcat: Fix packaged /var/tmp permissions.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Sebastien Ballet 2017-01-13 14:53:20 +01:00 committed by Willy Sudiarto Raharjo
parent 575b7a1120
commit 97d37ce315
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -66,6 +66,11 @@ find -L . \
mkdir -p $PKG/etc/tomcat $PKG/usr/share/{tomcat,java} \
$PKG/var/{run,lib,log,tmp,spool}/tomcat
# required, otherwise, permissions on /var/tmp will be
# (re)set to 755 when package is installed.
#
chmod 1777 $PKG/var/tmp
rm -f bin/*.exe bin/*.bat bin/*.tar.gz bin/commons-daemon.jar
cp -rf bin lib $PKG/usr/share/tomcat/