From 31822e1512db38a99d92084030609c0dadf8fe2c Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 14 Dec 2016 12:17:11 +0100 Subject: [PATCH] =?UTF-8?q?[fix]=20changing=20ownership=20of=20=E2=80=98/t?= =?UTF-8?q?mp/wkhtmltox=E2=80=99:=20Operation=20not=20permitted?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index ebfd181..9dee0cd 100644 --- a/scripts/install +++ b/scripts/install @@ -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