mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 15:37:19 +00:00
feat: receptor 中添加环境变量
This commit is contained in:
2
receptor
2
receptor
@@ -65,6 +65,8 @@ class ReceptorService:
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
print("\n- PID file is corrupted, starting Receptor...")
|
print("\n- PID file is corrupted, starting Receptor...")
|
||||||
os.remove(self.pid_file)
|
os.remove(self.pid_file)
|
||||||
|
|
||||||
|
os.environ.update({'LOCAL_CONNECTION_ENABLED': '1'})
|
||||||
process = subprocess.Popen(self.receptor_command)
|
process = subprocess.Popen(self.receptor_command)
|
||||||
with open(self.pid_file, 'w') as f:
|
with open(self.pid_file, 'w') as f:
|
||||||
f.write(str(process.pid))
|
f.write(str(process.pid))
|
||||||
|
Reference in New Issue
Block a user