updated scripts for proper true path vs relative path

This commit is contained in:
steven carpenter 2025-07-01 21:20:00 -04:00
parent 017614ad0b
commit a13b70c179
3 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,6 @@
@ShutdownOnFailedCommand 1 @ShutdownOnFailedCommand 1
@NoPromptForPassword 1 @NoPromptForPassword 1
force_install_dir /home/speccon18/Documents/code/test/reforger force_install_dir /var/lib/steam/reforger
login anonymous login anonymous
app_update 1874900 validate app_update 1874900 validate
quit quit

View file

@ -1 +1 @@
export NIXPKGS_ALLOW_UNFREE=1 && nix-shell -p steam-run --run "steam-run ./ArmaReforgerServer -config ./Configs/default.json -maxFPS 60" steam-run /var/lib/steam/reforger/ArmaReforgerServer -config /var/lib/steam/reforger/Configs/default.json -maxFPS 60

View file

@ -1,16 +1,15 @@
#!/bin/sh #!/bin/sh
set -e set -e
server_root_path="/home/speccon18/Documents/code/test/reforger" server_root_path="/var/lib/steam/reforger"
config_path="$server_root_path/Configs" config_path="$server_root_path/Configs"
start_script_path="$server_root_path/start.sh" start_script_path="$server_root_path/start.sh"
steamcmd_script_path="./reforger_update" steamcmd_script_path="/var/lib/steam/reforger_update"
# Step 1: Download updater script if missing # Step 1: Download updater script if missing
if [ ! -f "$steamcmd_script_path" ]; then if [ ! -f "$steamcmd_script_path" ]; then
echo "Downloading reforger_update script..." echo "Downloading reforger_update script..."
curl -L -o "$steamcmd_script_path" "https://git.skdevstudios.com/SK-Development-Studios/Ground-Zero-Conflict-Configuration/raw/branch/main/scripts/reforger_update" curl -L -o "$steamcmd_script_path" "https://git.skdevstudios.com/SK-Development-Studios/Ground-Zero-Conflict-Configuration/raw/branch/main/scripts/reforger_update"
chmod +x "$steamcmd_script_path"
fi fi
# Step 2: Missing files — download, run steamcmd, move into root # Step 2: Missing files — download, run steamcmd, move into root