install script cleanup
This commit is contained in:
parent
6267e12c9f
commit
955f5ae0fb
1 changed files with 2 additions and 3 deletions
|
@ -8,9 +8,8 @@ apt-get install wkhtmltopdf xvfb -y
|
||||||
|
|
||||||
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
|
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
|
tar -xJf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
|
||||||
cd wkhtmltox
|
cp -r wkhtmltox/lib/* /usr/lib
|
||||||
chown root:root bin/wkhtmltopdf
|
rm -rf wkhtmltox
|
||||||
cp -r * /usr/
|
|
||||||
|
|
||||||
echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh
|
echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh
|
||||||
chmod a+x /usr/bin/wkhtmltopdf.sh
|
chmod a+x /usr/bin/wkhtmltopdf.sh
|
||||||
|
|
Reference in a new issue