Skip to content

Commit

Permalink
bug: fix bosminer.toml writing to use only ssh, no sftp.
Browse files Browse the repository at this point in the history
  • Loading branch information
UpstreamData committed May 3, 2024
1 parent b7a8109 commit 993b7ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyasic/miners/backends/braiins_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ async def send_config(self, config: MinerConfig, user_suffix: str = None) -> Non

async with conn:
await conn.run("/etc/init.d/bosminer stop")
async with conn.start_sftp_client() as sftp:
async with sftp.open("/etc/bosminer.toml", "w+") as file:
await file.write(toml_conf)
await conn.run("echo '" + toml_conf + "' > /etc/bosminer.toml")
await conn.run("/etc/init.d/bosminer start")

async def set_power_limit(self, wattage: int) -> bool:
Expand Down

0 comments on commit 993b7ef

Please sign in to comment.