sudo for tar

Thanks to fr0g for this bug
This commit is contained in:
Maniack Crudelis 2017-02-16 23:18:09 +01:00 committed by GitHub
parent f149b27c75
commit 819e45a3a7

View file

@ -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)