server: fix incorrect file mode for ob_state file
This commit is contained in:
parent
fb31848a4c
commit
b3ca85b690
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ def write_ob_status(status: bool) -> None:
|
|||
if not os.path.exists("/music/ob_state.conf"):
|
||||
print("OB State file does not exist. Bailing.")
|
||||
return
|
||||
with open("/music/ob_state.conf", "r") as fd:
|
||||
with open("/music/ob_state.conf", "w") as fd:
|
||||
content = fd.read()
|
||||
if "ws" in content:
|
||||
content = re.sub(file_contents_ex, "ws=" + str(1 if status else 0), content)
|
||||
|
|
Loading…
Reference in a new issue