scp-secret-laboratory-serve.../start.sh
2025-04-08 15:25:33 -05:00

14 lines
No EOL
441 B
Bash

#!/bin/sh
echo "Current user is: $(whoami)"
# Install/update SCP:SL server
steamcmd +force_install_dir $SERVER_DIR +login anonymous +app_update 996560 validate +quit
# # Define config directory path
# CONFIGS="$INSTALL_DIR/.config/SCP Secret Laboratory/config/$PORT"
# # Ensure config directory exists
# mkdir -p "$CONFIGS"
# Run server directly (no need to su)
cd $SERVER_DIR && HOME=$INSTALL_DIR ./LocalAdmin $PORT #--config "$CONFIGS"