Use absolute path to curl
The process was not finding curl when launched via Supervisor
This commit is contained in:
@@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
|
||||
def _download_max_players() -> None:
|
||||
# be sure to use single quotes within the command to prevent shell escaping
|
||||
cmd = (
|
||||
f"curl -s"
|
||||
f"/usr/bin/curl -s"
|
||||
f" -u 'anonymous:{config.share['password']}'"
|
||||
f" -o '{config.max_player_spreadsheet_path}'"
|
||||
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
|
||||
cmd = (
|
||||
f"curl {CURL_OPTIONS} '{STEAM_API_URI}"
|
||||
f"/usr/bin/curl {CURL_OPTIONS} '{STEAM_API_URI}"
|
||||
f"?key={config.key}"
|
||||
f"{STEAM_OPTIONS}"
|
||||
f"&steamid={config.users[user]}'"
|
||||
|
||||
Reference in New Issue
Block a user