mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-04 01:48:21 +00:00
14 lines
No EOL
470 B
Bash
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 |