Skip to content

Commit 75723c8

Browse files
authored
Merge pull request #117 from TS3Tools/Issue-115-bzip-no-such-file-or-directory
Issue #115: Fix small script issues
2 parents ef04c12 + 6164672 commit 75723c8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

TS3UpdateScript

+5-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ function getLatestTSServerVersion() {
473473
TS3_SERVER_VERSION="$(getLatestStableTS3ServerVersion)";
474474
fi
475475

476-
if [[ -n "$TS3_SERVER_VERSION" ]] && [[ "$TS3_SERVER_VERSION" != "0" ]]; then
476+
if [[ -n "$TS3_SERVER_VERSION" ]] && [[ "$TS3_SERVER_VERSION" != "1" ]]; then
477477
echo -n "$TS3_SERVER_VERSION";
478478
else
479479
return 1;
@@ -1762,6 +1762,10 @@ function updateTeamSpeakInstance() {
17621762

17631763
wget ${TS3_SERVER_DOWNLOAD_LINK} -q -O teamspeak3-server.tar.bz2
17641764

1765+
if [[ ! -f "teamspeak3-server.tar.bz2" ]]; then
1766+
return 1;
1767+
fi
1768+
17651769
if [[ -f ${INSTANCE_PATH}/tsdns/tsdnsserver_${INSTALLED_TS3_SERVER_PLATFORM}_${TS3SERVER_ARCHITECTURE} ]]; then
17661770
rm -rf ${INSTANCE_PATH}/tsdns/tsdnsserver_${INSTALLED_TS3_SERVER_PLATFORM}_${TS3SERVER_ARCHITECTURE}
17671771
fi

docs/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Hotfix | Important fix for one more issues, which causes a not (correct) working
2323

2424
## Releases
2525

26+
### Version 6.0.2 (2022-11-23)
27+
28+
+ Implement check for downloaded TeamSpeak server files
29+
* Fixed incorrect check if the latest TeamSpeak server version could be detected or not. The script will now abort in case of failures.
30+
2631
### Version 6.0.1 (2022-11-23)
2732

2833
- Renamed `master` branch to `main`

0 commit comments

Comments
 (0)