Compare commits

...

2 Commits

2 changed files with 9 additions and 11 deletions

View File

@ -17,11 +17,13 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
### Deploy script for a game server running multiple open-source game servers ### Deploy script for a game server running multiple open-source game servers
### This script is intended for Debian 11, but may work on other apt-based ### This script is intended for Debian 11 or 12, but may work on other apt-based
### systems too ### systems too
### ###
### Specify domain name: ### Specify domain name:
### DOMAINNAME=example.com HOSTEDBYNAME=DeathByDenim ./deploy.sh ### DOMAINNAME=example.com HOSTEDBYNAME=DeathByDenim ./deploy.sh
###
### You can also specify NOSSL=1 to disable SSL
set -e set -e
@ -76,14 +78,9 @@ fi
export systemuserhome="$( getent passwd "${systemuser}" | cut -d: -f6 )" export systemuserhome="$( getent passwd "${systemuser}" | cut -d: -f6 )"
# Install the web interface for servers that require interactive shells # Install the web interface for servers that require interactive shells
if [ -d console2web ]; then git clone --depth=1 https://github.com/DeathByDenim/console2web.git ${TMPDIR:-/tmp}/console2web
cd console2web cp ${TMPDIR:-/tmp}/console2web/console2web.py /usr/bin/console2web
git pull rm -rf ${TMPDIR:-/tmp}/console2web
cd -
else
git clone https://github.com/DeathByDenim/console2web.git
fi
cp console2web/console2web.py /usr/bin/console2web
# Deploy web interface stuff # Deploy web interface stuff
"$(dirname "$0")"/scripts/deploy_monitoring.sh "$(dirname "$0")"/scripts/deploy_monitoring.sh

View File

@ -15,9 +15,10 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
git clone https://github.com/DeathByDenim/d3-serverstats.git git clone https://github.com/DeathByDenim/d3-serverstats.git ${TMPDIR:-/tmp}/d3-serverstats
cd d3-serverstats cd ${TMPDIR:-/tmp}/d3-serverstats
cp serverstats.py /usr/bin/ cp serverstats.py /usr/bin/
rm -rf ${TMPDIR:-/tmp}/d3-serverstats
cat > /etc/systemd/system/serverstats.service <<EOF cat > /etc/systemd/system/serverstats.service <<EOF
[Unit] [Unit]