Bu cevap, konu sahibi tarafından kabul edilebilir bir cevap olarak işaretlendi.
teamspeak_install_menu() {
clear
get_ascii
center_text " "
center_text "${WHITE}Teamspeak 3 Sunucu Kurulum başladı"
center_text " "
center_text "${WHITE}Lütfen bekleyin..."
center_text " "
print_separator "bottom"
sleep 2
local lastest_ts3_url=$(curl -s ${MAIN_SERVER}/linkler?istenen=ts3latest)
wget -q "$lastest_ts3_url" -O teamspeak3-server_linux_amd64.zip
unzip -q teamspeak3-server_linux_amd64.zip
teamspeakuser="teamspeak"
adduser --disabled-login --gecos "" "$teamspeakuser"
mkdir -p /opt/$teamspeakuser
mv teamspeak3-server_linux_amd64/* /opt/$teamspeakuser/
chown -R $teamspeakuser:$teamspeakuser /opt/$teamspeakuser
chmod +x /opt/$teamspeakuser/ts3server_startscript.sh
chmod +x /opt/$teamspeakuser/AccountingServerEmulator-Linux
{
echo "127.0.0.1 accounting.teamspeak.com"
echo "127.0.0.1 backupaccounting.teamspeak.com"
echo "127.0.0.1 ipcheck.teamspeak.com"
} | sudo tee -a /etc/hosts >/dev/null
su - $teamspeakuser -c "/opt/$teamspeakuser/AccountingServerEmulator-Linux"
su - $teamspeakuser -c "/opt/$teamspeakuser/ts3server_startscript.sh start"
local TS3_LOG_FILE=$(ls -t /opt/$teamspeakuser/logs/ts3server_*.log | head -n1)
local TS3_TOKEN=$(grep -oP 'token=KS+' "$TS3_LOG_FILE")
local TS3_PORT=$(grep -oP 'port=Kd+' "$TS3_LOG_FILE")
local TS3_YATQA_PASS=$(grep -oP 'password="K[^"]+' "$TS3_LOG_FILE")
clear
get_ascii
center_text " "
center_text "${GREEN}Teamspeak 3 Sunucu Kurulumu Başarılı!"
center_text "${WHITE}Teamspeak 3 sunucu bilgileri aşağıda yer almaktadır."
center_text " "
print_separator "middle"
center_text " "
center_text "${WHITE}Sunucu Adresi: ${ORANGE}${IP}${NC}"
center_text "${WHITE}Sunucu Portu: ${ORANGE}${TS3_PORT:-9987}${NC}"
center_text "${WHITE}Yönetici Kullanıcı Adı: ${ORANGE}serveradmin${NC}"
center_text "${WHITE}Yatqa Giriş Şifresi: ${ORANGE}${TS3_YATQA_PASS}${NC}"
center_text "${WHITE}Token: ${ORANGE}${TS3_TOKEN}${NC}"
center_text " "
print_separator "bottom"
read -n 1 -s -r -p "Ana menüye dönmek için herhangi bir tuşa basın..."
teamspeak_menu
}