Commit 8bd47994 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Kill server process

parent aafcc633
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -5,9 +5,10 @@ set -Eeuo pipefail
HTML="Please wait while Virtual DSM is installing...<script>\
        setTimeout(() => { document.location.reload(); }, 9999);</script>"

pkill -f server.sh || true
/run/server.sh 80 "${HTML}" > /dev/null &
/run/server.sh 5000 "${HTML}" > /dev/null &
{ pkill -f server.sh || true } 2>/dev/null

/run/server.sh 80 "${HTML}" &
/run/server.sh 5000 "${HTML}" &

# Download the required files from the Synology website
DL="https://global.synologydownload.com/download/DSM"