1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2025-07-06 16:03:32 +02:00

Add Support For Linux Mint (#161)

* Add Support For Linux Mint

* Add Linux Mint Debian Edition Support

Added LMDE to Debian Name Checks
This commit is contained in:
Curtis Carter
2020-12-26 23:41:33 -06:00
committed by GitHub
parent 40ae3174ea
commit 8da14b837b
3 changed files with 11 additions and 11 deletions

View File

@ -6,9 +6,9 @@ if ! [ $(id -u) = 0 ]; then echo "Please run this script as sudo or root"; exit
# Version number of Guacamole to install
GUACVERSION="1.2.0"
# Different version of Ubuntu and Debian have different package names...
# Different version of Ubuntu/Linux Mint and Debian have different package names...
source /etc/os-release
if [[ "${NAME}" == "Ubuntu" ]]; then
if [[ "${NAME}" == "Ubuntu" ]] || [[ "${NAME}" == "Linux Mint" ]]; then
# Ubuntu > 18.04 does not include universe repo by default
# Add the "Universe" repo, don't update
add-apt-repository -yn universe
@ -20,15 +20,15 @@ if [[ "${NAME}" == "Ubuntu" ]]; then
else
LIBPNG="libpng-dev"
fi
elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]] || [[ "${NAME}" == *"Kali GNU/Linux"* ]]; then
elif [[ "${NAME}" == *"Debian"* ]] || [[ "${NAME}" == *"Raspbian GNU/Linux"* ]] || [[ "${NAME}" == *"Kali GNU/Linux"* ]] || [[ "${NAME}" == "LMDE" ]]; then
JPEGTURBO="libjpeg62-turbo-dev"
if [[ "${PRETTY_NAME}" == *"stretch"* ]] || [[ "${PRETTY_NAME}" == *"buster"* ]] || [[ "${PRETTY_NAME}" == *"Kali GNU/Linux Rolling"* ]]; then
if [[ "${PRETTY_NAME}" == *"stretch"* ]] || [[ "${PRETTY_NAME}" == *"buster"* ]] || [[ "${PRETTY_NAME}" == *"Kali GNU/Linux Rolling"* ]] || [[ "${NAME}" == "LMDE" ]]; then
LIBPNG="libpng-dev"
else
LIBPNG="libpng12-dev"
fi
else
echo "Unsupported Distro - Ubuntu, Debian, Kali or Raspbian Only"
echo "Unsupported Distro - Ubuntu, Linux Mint, Debian, Kali or Raspbian Only"
exit 1
fi