From 819e45a3a7785406ad41bea62abb12f4b74f4bcc Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 16 Feb 2017 23:18:09 +0100 Subject: [PATCH] sudo for tar Thanks to fr0g for this bug --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index cc91dd7..fd11bc2 100755 --- a/scripts/install +++ b/scripts/install @@ -56,7 +56,7 @@ echo "$src_checksum source.tar.gz" | md5sum -c --status \ # Extract source into the app dir sudo mkdir $src_path || ynh_die "This path already contains a folder" -tar -x -f source.tar.gz -C $src_path --strip-components 1 +sudo tar -x -f source.tar.gz -C $src_path --strip-components 1 # Set permissions to app files # you may need to make some file and/or directory writeable by www-data (nginx user)