ProjectLighthouse/scripts-and-tools/start.sh

14 lines
No EOL
470 B
Bash

#!/bin/sh
# Startup script for production
#
# $1: Server to start; case sensitive!!!!!
# Called from systemd units
cd "$HOME"/data || (echo "Data directory not found, pls create one~" && exit 1)
echo "Running..."
# Normally this requires ASPNETCORE_URLS but we override that in the configuration
dotnet ../project-lighthouse/ProjectLighthouse.Servers."$1"/bin/Release/net6.0/LBPUnion.ProjectLighthouse.Servers."$1".dll
exit $? # Expose error code from dotnet command