2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 16:14:12 +00:00

[fixes] wkhtmltopdf deb installation fix for vivid

This commit is contained in:
Saurabh 2015-11-10 09:56:05 +05:30
parent f8d7806b11
commit c7077f71ce

View File

@ -237,15 +237,16 @@ install_wkhtmltopdf_centos () {
}
install_wkhtmltopdf_deb () {
WK_VER=$OS_VER
if [[ $OS_VER == "utopic" || $OS_VER == "vivid" || $OS_VER == "wily" ]]; then
echo "Installing wkhtmltox package for trusty (Ubuntu 14.4) even if you are using $OS_VER."
WK_VER="trusty"
fi
if [[ $OS == "debian" && $OS_VER == "7" ]]; then
WK_VER="wheezy"
else
WK_VER=$OS_VER
fi
run_cmd wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-$WK_VER-$WK_ARCH.deb
run_cmd dpkg -i wkhtmltox-0.12.2.1_linux-$WK_VER-$WK_ARCH.deb
}