#!/bin/bash echo 'Deploying...' ./init.sh if [ -f "${HOME}/rse_server.pid" ] then pkill $(cat ${HOME}/rse_server.pid) fi sed -e -i.bak 's/http:\/\/z.kaotisk\-hund.com:8610/https:\/\/api.radio.arching\-kaos.com/g' client/js/radio_emulator.js create_static_list.sh cd server node index.js >> ${HOME}/rse_server.log 2>&1 & echo $! > ${HOME}/rse_server.pid echo 'Deployed!'