mirror of
https://github.com/WilliamPeterMatthew/sslocal-manager-alpine.git
synced 2026-02-27 09:53:28 +08:00
try to fix
This commit is contained in:
@@ -48,14 +48,17 @@ def action():
|
|||||||
subprocess.run(["kill", pid])
|
subprocess.run(["kill", pid])
|
||||||
os.remove('/var/run/sslocal.pid')
|
os.remove('/var/run/sslocal.pid')
|
||||||
else:
|
else:
|
||||||
subprocess.Popen([
|
cmd = [
|
||||||
"sslocal",
|
"sslocal",
|
||||||
"--log-without-time",
|
"--log-without-time",
|
||||||
"-c", "/.ssconfig.json",
|
"-c", "/.ssconfig.json",
|
||||||
"--daemonize-pid", "/var/run/sslocal.pid",
|
"--daemonize-pid", "/var/run/sslocal.pid"
|
||||||
TFO,
|
]
|
||||||
ARGS,
|
if TFO:
|
||||||
])
|
cmd.append(TFO)
|
||||||
|
if ARGS:
|
||||||
|
cmd.extend(ARGS.split())
|
||||||
|
subprocess.Popen(cmd)
|
||||||
|
|
||||||
return redirect('/')
|
return redirect('/')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user