Update server.py
Browse files
server.py
CHANGED
|
@@ -543,7 +543,8 @@ if os.path.exists('/sillytavern/start.sh'):
|
|
| 543 |
while True:
|
| 544 |
if not is_port_in_use(8000):
|
| 545 |
os.chdir('/sillytavern')
|
| 546 |
-
subprocess.
|
|
|
|
| 547 |
if backup_thread.is_alive():
|
| 548 |
print("备份线程仍在运行...")
|
| 549 |
else:
|
|
|
|
| 543 |
while True:
|
| 544 |
if not is_port_in_use(8000):
|
| 545 |
os.chdir('/sillytavern')
|
| 546 |
+
subprocess.Popen('yes | sh /sillytavern/start.sh', shell=True)
|
| 547 |
+
time.sleep(15)
|
| 548 |
if backup_thread.is_alive():
|
| 549 |
print("备份线程仍在运行...")
|
| 550 |
else:
|