mirror of https://github.com/jumpserver/jumpserver
feat: receptor 中添加环境变量
parent
84a71c8b3a
commit
969069dde0
2
receptor
2
receptor
|
@ -65,6 +65,8 @@ class ReceptorService:
|
|||
except ValueError:
|
||||
print("\n- PID file is corrupted, starting Receptor...")
|
||||
os.remove(self.pid_file)
|
||||
|
||||
os.environ.update({'LOCAL_CONNECTION_ENABLED': '1'})
|
||||
process = subprocess.Popen(self.receptor_command)
|
||||
with open(self.pid_file, 'w') as f:
|
||||
f.write(str(process.pid))
|
||||
|
|
Loading…
Reference in New Issue