Skip to content

Commit

Permalink
Add dcs.lock file check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aterfax committed Apr 22, 2024
1 parent 2b07aa3 commit f88fe18
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ if [ ! -f "$network_vault_path" ]; then
exit 1
fi

dcs_lock_file="${DCS_saved_games_dir_release}/dcs.lock"
if [ -f "$dcs_lock_file" ]; then
echo "Error: File '$dcs_lock_file' is present. Server is already running or lockfile must be manually removed by user. Cannot autostart. Exiting."
sleep $TIMEOUT
exit 1
fi

install_folder_path="/config/.wine/drive_c/Program Files/Eagle Dynamics"
if [ ! -d "$install_folder_path" ]; then
echo "No installation detected. Cannot autostart. Exiting"
Expand Down

0 comments on commit f88fe18

Please sign in to comment.