Pre install lib for wkhtmltopdf
This commit is contained in:
parent
316f39f55f
commit
b1d4863017
@ -18,6 +18,7 @@ fi
|
|||||||
# --- Installation Wkhtmltopdf
|
# --- Installation Wkhtmltopdf
|
||||||
if [ ! -f /usr/local/bin/wkhtmltopdf ]
|
if [ ! -f /usr/local/bin/wkhtmltopdf ]
|
||||||
then
|
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
|
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
|
tar xJf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
|
||||||
cp -R wkhtmltox/* /usr/local/
|
cp -R wkhtmltox/* /usr/local/
|
||||||
@ -138,7 +139,7 @@ fi
|
|||||||
|
|
||||||
# --- Configuration Apache
|
# --- Configuration Apache
|
||||||
if [ ! -f /etc/apache2/conf-available/httpd.conf ]
|
if [ ! -f /etc/apache2/conf-available/httpd.conf ]
|
||||||
then
|
thenlibxrender1
|
||||||
sudo echo "ServerName 127.0.0.1" > /etc/apache2/conf-available/httpd.conf
|
sudo echo "ServerName 127.0.0.1" > /etc/apache2/conf-available/httpd.conf
|
||||||
sudo a2enconf httpd
|
sudo a2enconf httpd
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user