Browse Source

check for libmariadb2

if the user chose to install ts3 with mariadb/mysql, the script checks
if libmariadb2 is installed. if not, installation is aborted
pull/578/head
PhilPhonic 9 years ago
parent
commit
cb29924ea1
  1. 13
      functions/fn_install_ts3db

13
functions/fn_install_ts3db

@ -6,7 +6,18 @@ lgsm_version="251215"
fn_install_ts3db_mariadb(){
echo ""
echo "Configuring ${gamename} Server for MariaDB"
echo "checking if libmariadb2 is installed"
echo "================================="
ldd ${filesdir}/libts3db_mariadb.so | grep "libmariadb.so.2 => not found"
if [ $? -eq 0 ]; then
echo "libmariadb2 not installed. Please install it first."
echo "exiting..."
exit
else
echo "libmariadb2 installed."
fi
echo ""
echo "Configuring ${gamename} Server for MariaDB/MySQL"
echo "================================="
sleep 1
read -p "Enter MariaDB hostname: " mariahostname

Loading…
Cancel
Save