- Trimming Ubuntu dependencies (#17)
- Fixing a bug that made the DB type being always MariaDB while you would have expected MySQL or PostgreSQL
This commit is contained in:
parent
3897ea44a4
commit
a1f3a3fd2d
@ -130,7 +130,7 @@ function GetPrerequisites()
|
|||||||
Log "apt-get isn't the installer by default" 1
|
Log "apt-get isn't the installer by default" 1
|
||||||
else
|
else
|
||||||
installer=1
|
installer=1
|
||||||
apt-get -y install git lsb_release curl
|
apt-get -y install git lsb-release curl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
which yum
|
which yum
|
||||||
@ -147,7 +147,7 @@ function GetPrerequisites()
|
|||||||
Log "aptitude isn't the installer by default" 1
|
Log "aptitude isn't the installer by default" 1
|
||||||
else
|
else
|
||||||
installer=1
|
installer=1
|
||||||
aptitude -y install git lsb_release curl
|
aptitude -y install git lsb-release curl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Then, let's check that we have the necessary tools to define the OS version.
|
# Then, let's check that we have the necessary tools to define the OS version.
|
||||||
@ -223,35 +223,34 @@ function GetPrerequisites()
|
|||||||
case ${VER} in
|
case ${VER} in
|
||||||
"precise")
|
"precise")
|
||||||
# Ubuntu 12.04 LTS
|
# Ubuntu 12.04 LTS
|
||||||
su -c "apt-get -y install curl build-essential linux-headers-$(uname -r) autoconf automake cmake libbz2-dev libace-dev libace-6.0.1 libssl-dev libmysqlclient-dev libtool zlib1g-dev" root
|
su -c "apt-get -y install curl autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool" root
|
||||||
;;
|
;;
|
||||||
"trusty")
|
"trusty")
|
||||||
# Ubuntu 14.04 LTS
|
# Ubuntu 14.04 LTS
|
||||||
su -c "apt-get -y install curl build-essential linux-headers-$(uname -r) autoconf automake cmake libbz2-dev libace-dev libace-6.0.3 libssl-dev libmysqlclient-dev libtool zlib1g-dev" root
|
su -c "apt-get -y install curl autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool" root
|
||||||
;;
|
;;
|
||||||
"xenial")
|
"xenial")
|
||||||
# Ubuntu 16.04 LTS
|
# Ubuntu 16.04 LTS
|
||||||
su -c "apt-get -y install curl build-essential linux-headers-$(uname -r) autoconf automake cmake libbz2-dev libace-dev libace-6.3.3 libssl-dev libmysqlclient-dev libtool zlib1g-dev" root
|
su -c "apt-get -y install curl autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool" root
|
||||||
;;
|
;;
|
||||||
"yakkety")
|
"yakkety")
|
||||||
# Ubuntu 16.10
|
# Ubuntu 16.10
|
||||||
su -c "apt-get -y install curl build-essential linux-headers-$(uname -r) autoconf automake cmake libbz2-dev libace-dev libace-6.3.3 libssl-dev libmysqlclient-dev libtool zlib1g-dev" root
|
su -c "apt-get -y install curl autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool" root
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
OS_VER=0
|
OS_VER=0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
su -c "aptitude -y install curl build-essential linux-headers-$(uname -r) autoconf automake cmake libbz2-dev libace-dev libace-6.3.3 libssl-dev libmysqlclient-dev libtool zlib1g-dev" root
|
|
||||||
;;
|
;;
|
||||||
"Debian")
|
"Debian")
|
||||||
case ${VER} in
|
case ${VER} in
|
||||||
"jessie")
|
"jessie")
|
||||||
# Debian 8.0 "current"
|
# Debian 8.0 "current"
|
||||||
su -c "aptitude -y install curl build-essential linux-headers-$(uname -r) autoconf automake cmake libbz2-dev libace-dev libace-6.2.8 libssl-dev libmysqlclient-dev libtool zliblg-dev" root
|
su -c "aptitude -y install curl build-essential autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool" root
|
||||||
;;
|
;;
|
||||||
"stretch")
|
"stretch")
|
||||||
# Debian Next
|
# Debian Next
|
||||||
su -c "aptitude -y install curl build-essential linux-headers-$(uname -r) autoconf automake cmake libbz2-dev libace-dev libace-6.3.3 libssl-dev libmysqlclient-dev libtool zliblg-dev" root
|
su -c "aptitude -y install curl build-essential autoconf automake cmake libbz2-dev libace-dev libssl-dev libmysqlclient-dev libtool" root
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
OS_VER=0
|
OS_VER=0
|
||||||
@ -1061,7 +1060,7 @@ function HandleDatabases()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Ask the user the DB type
|
# Ask the user the DB type
|
||||||
DBTYPE=$($DLGAPP --backtitle "MaNGOS Linux Build Configuration" --title "Database Type" \
|
DB_TYPE=$($DLGAPP --backtitle "MaNGOS Linux Build Configuration" --title "Database Type" \
|
||||||
--menu "Which database are you using?" 0 0 3 \
|
--menu "Which database are you using?" 0 0 3 \
|
||||||
0 "MariaDB" \
|
0 "MariaDB" \
|
||||||
1 "MySQL" \
|
1 "MySQL" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user