mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-06-23 15:41:26 +00:00
13 lines
No EOL
460 B
Bash
13 lines
No EOL
460 B
Bash
# 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 |