Forum

Results 1 to 2 of 2
  1. #1
    Join Date
    February 2016
    Posts
    17

    ToDo List just a quick_setup.sh file

    maybe usefull for someone ....

    no comment


    Code:
    #!/bin/bash
    
    read -p "teamspeak version nummer (e.g. 3.9.0) : " -e -i 3.9.0 tsversion
    read -p "teamspeak arch (amd64 or ) : " -e -i amd64 tsarch
    read -p "teamspeak-service username : " -e -i tsuserservice tsserver
    
    mkdir /opt/teamspeak
    ln -s /opt/teamspeak/ /root/teamspeak_folder
    
    cd /opt/teamspeak
    wget -O teamspeak3-server.tar.bz2 https://files.teamspeak-services.com/releases/server/$tsversion/teamspeak3-server_linux_$tsarch-$tsversion.tar.bz2
    chmod +x teamspeak3-server.tar.bz2
    tar xjf teamspeak3-server.tar.bz2
    
    touch /opt/teamspeak/teamspeak3-server_linux_amd64/.ts3server_license_accepted
    
    useradd -M -N -r -s /bin/false -c "user to run teamspeak-services" $tsserver
    chmod +x /opt/teamspeak/teamspeak3-server_linux_amd64/ts3server
    chown -R $tsserver /opt/teamspeak
    
    echo "
    [Unit]
    Description=Team Speak 3 Server
    After=network.target
    [Service]
    WorkingDirectory=/opt/teamspeak/teamspeak3-server_linux_amd64/
    User=$tsserver
    Type=forking
    ExecStart=/opt/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh start
    ExecStop=/opt/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
    PIDFile=/opt/teamspeak/teamspeak3-server_linux_amd64/ts3server.pid
    RestartSec=15
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    " >> /etc/systemd/system/teamspeak-server.service
    
    
    systemctl enable teamspeak-server
    
    exit

  2. #2
    Join Date
    December 2004
    Location
    RF
    Posts
    3,006
    Rather useless script. There's already better installation instructions on the forum.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Evaluation] [BUG] Incorrect file info when re-uploading file
    By Widgert in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: June 3rd, 2019, 10:10 AM
  2. [Resolved] Selected icon file is too large. The maximum allowed file size is 0 kB.
    By FanTom in forum Permission System
    Replies: 13
    Last Post: July 3rd, 2015, 05:31 PM
  3. [Solved] File Browser - file input/output error
    By Cookiekiller in forum Windows
    Replies: 4
    Last Post: March 14th, 2015, 04:26 PM
  4. SUGGESTION: File Transfer Limits and Standard File Permissions
    By EndCrawler in forum Suggestions and Feedback
    Replies: 6
    Last Post: December 23rd, 2013, 03:59 PM
  5. Linux - File transfer port and pid file
    By Icelyfire in forum Suggestions and Feedback
    Replies: 1
    Last Post: December 22nd, 2009, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •