From e1aa89d1a9fab4ec127f70e71253a647d7d68f42 Mon Sep 17 00:00:00 2001 From: UltimateByte Date: Wed, 27 Jul 2016 05:24:01 +0200 Subject: [PATCH] added port info and servername --- Mumble/mumbleserver | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Mumble/mumbleserver b/Mumble/mumbleserver index 5f30b6fa8..fe8dfbb45 100644 --- a/Mumble/mumbleserver +++ b/Mumble/mumbleserver @@ -43,6 +43,13 @@ servercfg="murmur.ini" servercfgdir="${filesdir}" servercfgfullpath="${servercfgdir}/${servercfg}" backupdir="${rootdir}/backups" +if [ -f "${servercfgfullpath}" ]; then + port=$(cat "${servercfgfullpath}" | grep 'port=' | awk -F'=' '{ print $2 }') + servername="Mumble Port ${port}" +else + port="UNKNOWN" + servername="Mumble" +fi # Logging logdays="7"