We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dad74d commit 65fc7bdCopy full SHA for 65fc7bd
keepalive.sh
@@ -173,10 +173,17 @@ checkAlistAlive() {
173
return 1
174
fi
175
}
176
+isServ00() {
177
+ return $(hostname | grep 'serv00')
178
+}
179
180
startAlist() {
181
user="$(whoami)"
- domain="alist.$user.serv00.net"
182
+ if isServ00; then
183
+ domain="alist.$user.serv00.net"
184
+ else
185
+ domain="alist.$user.ct8.pl"
186
+ fi
187
webpath="${installpath}/domains/$domain/public_html/"
188
189
if [[ -d "$webpath/data" && -e "$webpath/alist" ]]; then
@@ -293,7 +300,6 @@ for obj in "${monitor[@]}"; do
293
300
294
301
elif [ "$obj" == "alist" ]; then
295
302
if ! checkAlistAlive; then
296
- cd ${installpath}/serv00-play/dmtg
297
303
startAlist
298
304
sleep 5
299
305
0 commit comments