UltimateByte před 10 roky
rodič
revize
62a308e729
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      Mumble/mumbleserver

+ 2 - 1
Mumble/mumbleserver

@@ -45,9 +45,10 @@ servercfgdir="${filesdir}"
 servercfgfullpath="${servercfgdir}/${servercfg}"
 backupdir="${rootdir}/backups"
 if [ -f "${servercfgfullpath}" ]; then
-	port=$(cat "${servercfgfullpath}" | grep 'port=' | awk -F'=' '{ print $2 }')
+	port=$(cat "${servercfgfullpath}" > /dev/null 2>&1 | grep 'port=' | awk -F'=' '{ print $2 }')
 	servername="Mumble Port ${port}"
 else
+	ip=""
 	port="UNKNOWN"
 	servername="Mumble"
 fi