diff --git a/orthos2/taskmanager/tasks/sconsole.py b/orthos2/taskmanager/tasks/sconsole.py index 3e520ce7..c6a2d7b4 100644 --- a/orthos2/taskmanager/tasks/sconsole.py +++ b/orthos2/taskmanager/tasks/sconsole.py @@ -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) @@ -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",