You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -93,6 +94,7 @@ if [ "$old_version" != "$version" ]; then
93
94
if [ "$checksum"="$sha256" ];then
94
95
tsdir=$(tar -tf "$tmpfile"| grep -m1 /)
95
96
if [ !-e'.ts3server_license_accepted' ];then
97
+
# display server license
96
98
tar --to-stdout -xf "$tmpfile""$tsdir"LICENSE
97
99
echo -n "Accept license agreement (y/N)? "
98
100
read answer
@@ -102,15 +104,21 @@ if [ "$old_version" != "$version" ]; then
102
104
fi
103
105
fi
104
106
if [ -e'ts3server_startscript.sh' ];then
105
-
./ts3server_startscript.sh stop
107
+
# check if server is running
108
+
if [ -e'ts3server.pid' ];then
109
+
./ts3server_startscript.sh stop
110
+
else
111
+
server_stopped=true
112
+
fi
106
113
else
107
114
mkdir "$tsdir"|| { echo'Could not create installation directory. If you wanted to upgrade an existing installation, make sure to place this script INSIDE the existing installation directory.'1>&2; rm "$tmpfile";exit 1; }
108
115
cd"$tsdir"&& mv ../"$(basename "$0")".
109
116
fi
110
117
118
+
# extract the archive into the installation directory and overwrite existing files
111
119
tar --strip-components 1 -xf "$tmpfile""$tsdir"
112
120
touch .ts3server_license_accepted
113
-
if [ "$1"!='--dont-start' ];then
121
+
if [ "$1"!='--dont-start' ]&& [ "$server_stopped"!=true ];then
0 commit comments