Skip to content

Commit

Permalink
Merge pull request #273 from olafhering/cscreenrc_lock
Browse files Browse the repository at this point in the history
remove bogus attempt to lock cscreenrc
  • Loading branch information
SchoolGuy authored Nov 29, 2024
2 parents d885ab0 + 0e4686a commit 99c9e40
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions orthos2/taskmanager/tasks/sconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ def execute(self):
conn = SSH(self.fqdn)
conn.connect(user="_cscreen")

_stdout, stderr, exitstatus = conn.execute(
"touch /dev/shm/.cscreenrc_allow_update"
)
if exitstatus != 0:
raise Exception(
"Couldn't lock cscreen ('touch /dev/shm/.cscreenrc_allow_update')"
)

new_content = ""
# domains served by this cscreen server:
domains = Domain.objects.filter(cscreen_server__fqdn=self.fqdn)
Expand Down Expand Up @@ -128,15 +120,6 @@ def execute(self):
if exitstatus != 0:
logger.warning(stderr)

_stdout, stderr, exitstatus = conn.execute(
"rm -f /dev/shm/.cscreenrc_allow_update"
)

if exitstatus != 0:
raise Exception(
"Couldn't unlock CScreen ('rm /dev/shm/.cscreenrc_allow_update)"
)

# Restart cscreend server
_stdout, stderr, exitstatus = conn.execute(
"sudo systemctl restart cscreend.service",
Expand Down

0 comments on commit 99c9e40

Please sign in to comment.