[UPD] support debian 11
This commit is contained in:
parent
bfb2b0eea8
commit
dc65e7f496
2 changed files with 6 additions and 1 deletions
|
|
@ -12,14 +12,16 @@ EL_USER=${USER}
|
|||
## https://github.com/odoo/odoo/wiki/Wkhtmltopdf ):
|
||||
# Ubuntu 20.04
|
||||
UBUNTU_VERSION=$(lsb_release -rs)
|
||||
OS=$(lsb_release -si)
|
||||
if [ "20.04" == "${UBUNTU_VERSION}" ]; then
|
||||
WKHTMLTOX_X64=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
|
||||
elif [ "22.04" == "${UBUNTU_VERSION}" ]; then
|
||||
WKHTMLTOX_X64=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
|
||||
elif [ "18.04" == "${UBUNTU_VERSION}" ]; then
|
||||
WKHTMLTOX_X64=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
|
||||
elif [[ "${OS}" == "Debian" ]]; then
|
||||
WKHTMLTOX_X64=https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.bullseye_amd64.deb
|
||||
else
|
||||
# TODO support debian
|
||||
echo "Your version of Ubuntu is not supported, only support 18.04, 20.04 and 22.04"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@ if [[ "${OSTYPE}" == "linux-gnu" ]]; then
|
|||
else
|
||||
echo "Your version is not supported, only support 18.04, 20.04 and 22.04 : ${VERSION}"
|
||||
fi
|
||||
elif [[ "${OS}" == "Debian" ]]; then
|
||||
./script/install_debian_dependency.sh
|
||||
else
|
||||
./script/install_debian_dependency.sh
|
||||
echo "Your Linux system is not supported, only support Ubuntu 18.04 or Ubuntu 20.04 or Ubuntu 22.04."
|
||||
fi
|
||||
elif [[ "${OSTYPE}" == "darwin"* ]]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue