#!/bin/sh set -eu HTTP_PORT="${HTTP_PORT:-8080}" cd /var/www/html sed -i "s/'quakejs:/window.location.hostname + ':/g" index.html sed -i "s/':80'/':${HTTP_PORT}'/g" index.html /etc/init.d/apache2 start cd /quakejs exec node build/ioq3ded.js +set fs_cdn localhost:80 +set fs_game baseq3 +set dedicated 1 +exec server.cfg