[fix] Permission denied on tarball extract

This commit is contained in:
ljf 2016-12-14 11:50:30 +01:00
parent 40f007a4c4
commit a923d850c2

View file

@ -71,8 +71,10 @@ else
# The debian package has a bug so we deploy a more recent version
DESTDIR="/tmp/wkhtmltox/"
mkdir -p $DESTDIR
extract_sources $DESTDIR "$app"
chown -R $APPNAME: /tmp/wkhtmltox
extract_sources $DESTDIR "$APPNAME"
mv "$DESTDIR." /usr/
rm -Rf $DESTDIR
# Set admin password