Use absolute path to curl

The process was not finding curl when launched via Supervisor
This commit is contained in:
Nate Bowman
2026-10-08 18:36:48 -04:00
parent 5e0a74f8ce
commit f5b58cfe58

View File

@@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
def _download_max_players() -> None: def _download_max_players() -> None:
# be sure to use single quotes within the command to prevent shell escaping # be sure to use single quotes within the command to prevent shell escaping
cmd = ( cmd = (
f"curl -s" f"/usr/bin/curl -s"
f" -u 'anonymous:{config.share['password']}'" f" -u 'anonymous:{config.share['password']}'"
f" -o '{config.max_player_spreadsheet_path}'" f" -o '{config.max_player_spreadsheet_path}'"
f" '{config.share['uri']}'" f" '{config.share['uri']}'"
@@ -28,7 +28,7 @@ def _download_games(user: str) -> None:
# be sure to use single quotes within the command to prevent shell escaping # be sure to use single quotes within the command to prevent shell escaping
cmd = ( cmd = (
f"curl {CURL_OPTIONS} '{STEAM_API_URI}" f"/usr/bin/curl {CURL_OPTIONS} '{STEAM_API_URI}"
f"?key={config.key}" f"?key={config.key}"
f"{STEAM_OPTIONS}" f"{STEAM_OPTIONS}"
f"&steamid={config.users[user]}'" f"&steamid={config.users[user]}'"