mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
[fixes] wkhtmltopdf deb installation fix for vivid
This commit is contained in:
parent
f8d7806b11
commit
c7077f71ce
@ -237,15 +237,16 @@ install_wkhtmltopdf_centos () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_wkhtmltopdf_deb () {
|
install_wkhtmltopdf_deb () {
|
||||||
|
WK_VER=$OS_VER
|
||||||
|
|
||||||
if [[ $OS_VER == "utopic" || $OS_VER == "vivid" || $OS_VER == "wily" ]]; then
|
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."
|
echo "Installing wkhtmltox package for trusty (Ubuntu 14.4) even if you are using $OS_VER."
|
||||||
WK_VER="trusty"
|
WK_VER="trusty"
|
||||||
fi
|
fi
|
||||||
if [[ $OS == "debian" && $OS_VER == "7" ]]; then
|
if [[ $OS == "debian" && $OS_VER == "7" ]]; then
|
||||||
WK_VER="wheezy"
|
WK_VER="wheezy"
|
||||||
else
|
|
||||||
WK_VER=$OS_VER
|
|
||||||
fi
|
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 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
|
run_cmd dpkg -i wkhtmltox-0.12.2.1_linux-$WK_VER-$WK_ARCH.deb
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user