TS3Tools / TS3UpdateScript

Automate all update processes for your TeamSpeak 3 server instances
GNU General Public License v3.0
189 stars 22 forks source link

Script fails to find correct server within recursive directory. #22

Closed techjwalker closed 8 years ago

techjwalker commented 8 years ago

As an example, if you have a TS3 server in "/home/teamspeak" and another in "/home/teamspeak/home/teamspeak", which can happen if you've just unzipped a root-oriented backup within the user folder as I had, the script will find only the further recursive server and not the other, and will fail to update.

Edit for posterity: 1/3rd of the response to this was relevant. The issue was the script choosing the further recursive instance due to lack of "hoster license".

Sebbo94BY commented 8 years ago

The script detects all instances. Also such nested ones.

Due it is searching recursive, it will find the deeper instance first and will return this as first found instance for an update process.

I've tested this right now and it detects every instance as it should:

/home/teamspeak/home/teamspeak/
/home/teamspeak/
/home/ts3/teamspeak3-server_linux_amd64/

In every above path is one instance installed.

In your case, I would fix the backup deployment issue, because if you're creating a root-oriented backup, it also should place it to exact this path and not to a sub-path, that it appears twice.

Please notice, that the script already creates a backup. You can keep these backups by using the parameter --keep-backups.

If you want to be able to find all instances, you will need the Hoster license for this script: Readme.md#Script Licenses