From b1d48630170a899da3ef89dcd1478ae191385ecf Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 25 Oct 2016 15:26:06 +0200 Subject: [PATCH] Pre install lib for wkhtmltopdf --- lamp-trusty64-fpm/bootstrap.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lamp-trusty64-fpm/bootstrap.sh b/lamp-trusty64-fpm/bootstrap.sh index 06e31aa..7d5c2a9 100644 --- a/lamp-trusty64-fpm/bootstrap.sh +++ b/lamp-trusty64-fpm/bootstrap.sh @@ -18,6 +18,7 @@ fi # --- Installation Wkhtmltopdf if [ ! -f /usr/local/bin/wkhtmltopdf ] then + sudo apt-get install libxrender1 libfontconfig1 wget -q http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz tar xJf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz cp -R wkhtmltox/* /usr/local/ @@ -138,7 +139,7 @@ fi # --- Configuration Apache if [ ! -f /etc/apache2/conf-available/httpd.conf ] -then +thenlibxrender1 sudo echo "ServerName 127.0.0.1" > /etc/apache2/conf-available/httpd.conf sudo a2enconf httpd fi