From c7077f71ce238e10763462a663f3152877973539 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 10 Nov 2015 09:56:05 +0530 Subject: [PATCH] [fixes] wkhtmltopdf deb installation fix for vivid --- install_scripts/setup_frappe.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install_scripts/setup_frappe.sh b/install_scripts/setup_frappe.sh index 854ea12d..2cff86c6 100755 --- a/install_scripts/setup_frappe.sh +++ b/install_scripts/setup_frappe.sh @@ -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 }