Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove bogus attempt to lock cscreenrc #273

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading