archive
/
md-pdf-rs
Archived
1
Fork 0

Script merge

This commit is contained in:
Jake Howard 2017-08-27 23:13:27 +01:00
parent 70154f87a5
commit 60e46dfcb6
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,14 @@
set -e
apt-get install wkhtmltopdf xvfb -y
apt-get install xvfb -y
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
cd wkhtmltox
chown root:root bin/wkhtmltopdf
cp -r * /usr/
echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh
chmod a+x /usr/bin/wkhtmltopdf.sh
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf