mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Installer: differentiate linux distro
This commit is contained in:
@@ -4,8 +4,18 @@ function inst_configureOS() {
|
||||
solaris*) echo "Solaris is not supported yet" ;;
|
||||
darwin*) source "$AC_PATH_INSTALLER/includes/os_configs/osx.sh" ;;
|
||||
linux*)
|
||||
# If available, use LSB to identify distribution
|
||||
if [ -f /etc/lsb-release -o -d /etc/lsb-release.d ]; then
|
||||
DISTRO=$(lsb_release -i | cut -d: -f2 | sed s/'^\t'//)
|
||||
# Otherwise, use release info file
|
||||
else
|
||||
DISTRO=$(ls -d /etc/[A-Za-z]*[_-][rv]e[lr]* | grep -v "lsb" | cut -d'/' -f3 | cut -d'-' -f1 | cut -d'_' -f1)
|
||||
fi
|
||||
|
||||
DISTRO=${DISTRO,,}
|
||||
|
||||
# TODO: implement different configurations by distro
|
||||
source "$AC_PATH_INSTALLER/includes/os_configs/linux.sh"
|
||||
source "$AC_PATH_INSTALLER/includes/os_configs/$DISTRO.sh"
|
||||
;;
|
||||
bsd*) echo "BSD is not supported yet" ;;
|
||||
msys*) source "$AC_PATH_INSTALLER/includes/os_configs/windows.sh" ;;
|
||||
|
||||
5
bin/installer/includes/os_configs/debian.sh
Normal file
5
bin/installer/includes/os_configs/debian.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev \
|
||||
libssl1.0-dev libbz2-dev libreadline-dev libncurses-dev \
|
||||
mysql-server libace-6.* libace-dev
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
|
||||
sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev mysql-server
|
||||
sudo apt-get install libace-6.* libace-dev
|
||||
5
bin/installer/includes/os_configs/ubuntu.sh
Normal file
5
bin/installer/includes/os_configs/ubuntu.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
sudo apt-get install git cmake make gcc g++ clang libmysqlclient-dev \
|
||||
libssl-dev=1.0.2g-1ubuntu4.8 libbz2-dev libreadline-dev libncurses-dev \
|
||||
mysql-server libace-6.* libace-dev
|
||||
Reference in New Issue
Block a user