From a923d850c26f060f5b25ffaa90b9f3ed6ac352af Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 14 Dec 2016 11:50:30 +0100 Subject: [PATCH] [fix] Permission denied on tarball extract --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 8bb8e86..dfdd267 100644 --- a/scripts/install +++ b/scripts/install @@ -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