[fix] changing ownership of ‘/tmp/wkhtmltox’: Operation not permitted

This commit is contained in:
ljf 2016-12-14 12:17:11 +01:00
parent fd307618d9
commit 31822e1512

View file

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