Update server9-bf.py
Browse files- server9-bf.py +100 -29
server9-bf.py
CHANGED
|
@@ -21,7 +21,9 @@ from requests.adapters import HTTPAdapter
|
|
| 21 |
from requests.packages.urllib3.util.retry import Retry
|
| 22 |
from IPython.display import clear_output
|
| 23 |
|
| 24 |
-
#
|
|
|
|
|
|
|
| 25 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 26 |
|
| 27 |
# ==========================================
|
|
@@ -54,7 +56,6 @@ lock = threading.Lock()
|
|
| 54 |
|
| 55 |
# FRP 配置文件列表
|
| 56 |
configs = [
|
| 57 |
-
# ... (为了排版简洁,这里保留你原本的 configs 列表内容,直接复制你原本的那一大串过来即可)
|
| 58 |
("""
|
| 59 |
[common]
|
| 60 |
server_addr = 47.237.156.222
|
|
@@ -83,7 +84,57 @@ configs = [
|
|
| 83 |
local_port = 8000
|
| 84 |
remote_port = 7082
|
| 85 |
""", '/content/frp/frpc1.ini'),
|
| 86 |
-
(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
[common]
|
| 88 |
server_addr = {ssh_url}
|
| 89 |
server_port=7000
|
|
@@ -134,12 +185,12 @@ def install_package(package):
|
|
| 134 |
def init_environment():
|
| 135 |
"""初始化基础环境和依赖"""
|
| 136 |
logging.info('-----------更新软件包列表开始-------------')
|
| 137 |
-
run_cmd("rm -r /sync.sh", ignore_errors=True)
|
| 138 |
-
run_cmd("wget -O /sync.sh https://huggingface.co/datasets/Qilan2/st-server/resolve/main/sync.sh")
|
| 139 |
run_cmd("export LC_ALL=zh_CN.UTF-8")
|
| 140 |
|
| 141 |
run_cmd("mkdir -p /content/frp")
|
| 142 |
-
run_cmd("wget https://huggingface.co/Qilan2/box/resolve/main/frp/frpc -O /content/frp/frpc")
|
| 143 |
run_cmd("chmod +x /content/frp/frpc")
|
| 144 |
|
| 145 |
if not is_installed('nodejs'):
|
|
@@ -157,7 +208,7 @@ def setup_cloudflared(install_ssh_config=True):
|
|
| 157 |
run_cmd("sudo mkdir -p --mode=0755 /usr/share/keyrings")
|
| 158 |
run_cmd("curl -fsSL https://pkg.cloudflare.com/cloudflare-public-v2.gpg | sudo tee /usr/share/keyrings/cloudflare-public-v2.gpg >/dev/null")
|
| 159 |
run_cmd("echo 'deb [signed-by=/usr/share/keyrings/cloudflare-public-v2.gpg] https://pkg.cloudflare.com/cloudflared any main' | sudo tee /etc/apt/sources.list.d/cloudflared.list")
|
| 160 |
-
run_cmd("sudo apt-get update && sudo apt-get install cloudflared -y")
|
| 161 |
|
| 162 |
ssh_dir = os.path.expanduser("~/.ssh")
|
| 163 |
os.makedirs(ssh_dir, exist_ok=True)
|
|
@@ -169,23 +220,23 @@ def setup_cloudflared(install_ssh_config=True):
|
|
| 169 |
os.chmod(config_path, 0o600)
|
| 170 |
logging.info(f"✅ SSH config for {cf_ssh} generated successfully.")
|
| 171 |
else:
|
| 172 |
-
run_cmd(f"sudo cloudflared service install {cf_token}")
|
| 173 |
|
| 174 |
def setup_ssh():
|
| 175 |
logging.info('-----------SSH配置开始-------------')
|
| 176 |
-
run_cmd("apt update && apt install openssh-server vim -y")
|
| 177 |
run_cmd("sudo sed -i '/PasswordAuthentication/s/^#//g' /etc/ssh/ssh_config")
|
| 178 |
run_cmd("sudo sed -i '/PermitRootLogin prohibit-password/s/prohibit-password/yes/' /etc/ssh/sshd_config")
|
| 179 |
|
| 180 |
run_cmd("echo 'root:qilan' | sudo chpasswd")
|
| 181 |
run_cmd("echo 'PermitRootLogin yes' | sudo tee -a /etc/ssh/sshd_config")
|
| 182 |
-
run_cmd("service ssh restart")
|
| 183 |
run_cmd("export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -v '/opt/conda/lib' | paste -sd ':') ")
|
| 184 |
logging.info('-----------SSH配置结束-------------')
|
| 185 |
|
| 186 |
def generate_ssh_key():
|
| 187 |
-
run_cmd("rm -f ~/.ssh/id_rsa ~/.ssh/id_rsa.pub")
|
| 188 |
-
run_cmd("ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -N ''")
|
| 189 |
run_cmd('chmod 600 ~/.ssh/id_rsa')
|
| 190 |
logging.info("SSH key pair generated.")
|
| 191 |
|
|
@@ -214,7 +265,7 @@ def get_folder_size(folder):
|
|
| 214 |
|
| 215 |
def compress_folder():
|
| 216 |
global last_uploaded_size
|
| 217 |
-
run_cmd('rm -
|
| 218 |
os.makedirs('/a', exist_ok=True)
|
| 219 |
|
| 220 |
with lock:
|
|
@@ -230,7 +281,11 @@ def compress_folder():
|
|
| 230 |
run_cmd(f'tar -cvf - {data_folder} | pigz -p 2 -1 > {zip_file_path}', quiet=True)
|
| 231 |
|
| 232 |
file_path = "/a/sillytavern.ctk"
|
| 233 |
-
run_cmd(f'mv {zip_file_path} {file_path}')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
file_size = os.path.getsize(file_path)
|
| 235 |
|
| 236 |
if file_size < (800 * 1024 ** 2):
|
|
@@ -254,7 +309,7 @@ def repeat_task():
|
|
| 254 |
|
| 255 |
def kill_frpc_processes():
|
| 256 |
try:
|
| 257 |
-
subprocess.run(['pkill', '-f', 'frpc'], check=True)
|
| 258 |
logging.info("旧的 frpc 进程已清理。")
|
| 259 |
except subprocess.CalledProcessError:
|
| 260 |
pass # 如果没有进程,直接忽略
|
|
@@ -267,15 +322,14 @@ def frp(configs, backstage):
|
|
| 267 |
frpc_cmd = ['/content/frp/frpc', '-c', config_file_path]
|
| 268 |
|
| 269 |
if backstage:
|
| 270 |
-
subprocess.Popen(frpc_cmd)
|
| 271 |
else:
|
| 272 |
-
run_cmd(f'/content/frp/frpc -c {config_file_path}')
|
| 273 |
|
| 274 |
def Run_SillyTavern():
|
| 275 |
"""启动 Node 服务"""
|
| 276 |
os.chdir(data_folder)
|
| 277 |
try:
|
| 278 |
-
# 原代码执行了5次,优化为仅执行1次即可
|
| 279 |
run_cmd(f'yes | sh {data_folder}/start.sh', quiet=True)
|
| 280 |
logging.info("server.js 已启动")
|
| 281 |
except Exception as e:
|
|
@@ -300,7 +354,7 @@ def setup_sillytavern():
|
|
| 300 |
json.dump(ini_content, json_file, indent=4)
|
| 301 |
run_cmd("chmod 600 ~/.kaggle/kaggle.json")
|
| 302 |
|
| 303 |
-
run_cmd(f"rm -rf /a /sillytavern /*.zi* {data_folder}", ignore_errors=True)
|
| 304 |
os.makedirs(data_folder, exist_ok=True)
|
| 305 |
os.chdir('/')
|
| 306 |
|
|
@@ -320,18 +374,18 @@ def setup_sillytavern():
|
|
| 320 |
copy_public_key_to_remote(cf_ssh, 22, "root", "qilan")
|
| 321 |
run_cmd(f"sshpass -p 'qilan' rsync -avz --timeout=600 -e 'ssh -p 22 -o StrictHostKeyChecking=no' root@{cf_ssh}:{data_folder}/ {data_folder}/")
|
| 322 |
else:
|
| 323 |
-
run_cmd(f"7z x /{huggingface_Data_name}.zip -o/ -y")
|
| 324 |
-
run_cmd("mv /sillytavern.tck sillytavern.tar.gz", ignore_errors=True)
|
| 325 |
-
run_cmd("mv /sillytavern.ctk sillytavern.tar.gz", ignore_errors=True)
|
| 326 |
run_cmd("tar -xvpf /sillytavern.tar.gz -C / --use-compress-program=pigz > /dev/null")
|
| 327 |
|
| 328 |
-
run_cmd("rm -f ip.py")
|
| 329 |
-
run_cmd("wget -O /root/SillyTavern/ip.py https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip.py")
|
| 330 |
-
run_cmd("python /root/SillyTavern/ip.py", ignore_errors=True)
|
| 331 |
|
| 332 |
os.chdir(data_folder)
|
| 333 |
-
run_cmd("nvm install node && nvm use node && npm install -y")
|
| 334 |
-
run_cmd(f'yes | sh {data_folder}/start.sh')
|
| 335 |
|
| 336 |
threading.Thread(target=Run_SillyTavern, daemon=True).start()
|
| 337 |
logging.info('-----------SillyTavern 部署结束-------------')
|
|
@@ -351,8 +405,25 @@ if __name__ == '__main__':
|
|
| 351 |
|
| 352 |
# 2. 启动核心服务
|
| 353 |
threading.Thread(target=setup_sillytavern, daemon=True).start()
|
| 354 |
-
time.sleep(60)
|
| 355 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 356 |
# 3. 写入监控配置
|
| 357 |
config = configparser.ConfigParser()
|
| 358 |
config.add_section('general')
|
|
@@ -360,7 +431,7 @@ if __name__ == '__main__':
|
|
| 360 |
with open('/config.ini', 'w') as configfile:
|
| 361 |
config.write(configfile)
|
| 362 |
|
| 363 |
-
run_cmd("rm -rf /qilan-st9.zip /sillytavern.tar.gz", ignore_errors=True)
|
| 364 |
|
| 365 |
# 4. 后台进程管理
|
| 366 |
if os.path.exists(f'{data_folder}/start.sh'):
|
|
|
|
| 21 |
from requests.packages.urllib3.util.retry import Retry
|
| 22 |
from IPython.display import clear_output
|
| 23 |
|
| 24 |
+
# ==========================================
|
| 25 |
+
# 0. 配置日志输出格式
|
| 26 |
+
# ==========================================
|
| 27 |
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
| 28 |
|
| 29 |
# ==========================================
|
|
|
|
| 56 |
|
| 57 |
# FRP 配置文件列表
|
| 58 |
configs = [
|
|
|
|
| 59 |
("""
|
| 60 |
[common]
|
| 61 |
server_addr = 47.237.156.222
|
|
|
|
| 84 |
local_port = 8000
|
| 85 |
remote_port = 7082
|
| 86 |
""", '/content/frp/frpc1.ini'),
|
| 87 |
+
("""
|
| 88 |
+
[common]
|
| 89 |
+
server_addr = 43.134.75.213
|
| 90 |
+
server_port = 7000
|
| 91 |
+
[2kjas9]
|
| 92 |
+
type = tcp
|
| 93 |
+
local_ip = 127.0.0.1
|
| 94 |
+
local_port = 8000
|
| 95 |
+
remote_port = 7079
|
| 96 |
+
""", '/content/frp/frpc2.ini'),
|
| 97 |
+
("""
|
| 98 |
+
[common]
|
| 99 |
+
server_addr = 8.210.217.27
|
| 100 |
+
server_port = 7000
|
| 101 |
+
[3kja1sh9]
|
| 102 |
+
type = tcp
|
| 103 |
+
local_ip = 127.0.0.1
|
| 104 |
+
local_port = 8000
|
| 105 |
+
remote_port = 7079
|
| 106 |
+
""", '/content/frp/frpc3.ini'),
|
| 107 |
+
("""
|
| 108 |
+
[common]
|
| 109 |
+
server_addr = 45.32.68.209
|
| 110 |
+
server_port=7000
|
| 111 |
+
[4kkji1mk9]
|
| 112 |
+
type=tcp
|
| 113 |
+
local_ip=127.0.0.1
|
| 114 |
+
local_port=8000
|
| 115 |
+
remote_port=7079
|
| 116 |
+
""", '/content/frp/frpc4.ini'),
|
| 117 |
+
("""
|
| 118 |
+
[common]
|
| 119 |
+
server_addr = 47.74.57.131
|
| 120 |
+
server_port=7000
|
| 121 |
+
[4kkji1mk9]
|
| 122 |
+
type=tcp
|
| 123 |
+
local_ip=127.0.0.1
|
| 124 |
+
local_port=8000
|
| 125 |
+
remote_port=7090
|
| 126 |
+
""", '/content/frp/frpc6.ini'),
|
| 127 |
+
("""
|
| 128 |
+
[common]
|
| 129 |
+
server_addr = 47.243.129.107
|
| 130 |
+
server_port=7000
|
| 131 |
+
[4kkji1mk9]
|
| 132 |
+
type=tcp
|
| 133 |
+
local_ip=127.0.0.1
|
| 134 |
+
local_port=8000
|
| 135 |
+
remote_port=7090
|
| 136 |
+
""", '/content/frp/frpc7.ini'),
|
| 137 |
+
(f"""
|
| 138 |
[common]
|
| 139 |
server_addr = {ssh_url}
|
| 140 |
server_port=7000
|
|
|
|
| 185 |
def init_environment():
|
| 186 |
"""初始化基础环境和依赖"""
|
| 187 |
logging.info('-----------更新软件包列表开始-------------')
|
| 188 |
+
run_cmd("rm -r /sync.sh", ignore_errors=True, quiet=True)
|
| 189 |
+
run_cmd("wget -q -O /sync.sh https://huggingface.co/datasets/Qilan2/st-server/resolve/main/sync.sh")
|
| 190 |
run_cmd("export LC_ALL=zh_CN.UTF-8")
|
| 191 |
|
| 192 |
run_cmd("mkdir -p /content/frp")
|
| 193 |
+
run_cmd("wget -q https://huggingface.co/Qilan2/box/resolve/main/frp/frpc -O /content/frp/frpc")
|
| 194 |
run_cmd("chmod +x /content/frp/frpc")
|
| 195 |
|
| 196 |
if not is_installed('nodejs'):
|
|
|
|
| 208 |
run_cmd("sudo mkdir -p --mode=0755 /usr/share/keyrings")
|
| 209 |
run_cmd("curl -fsSL https://pkg.cloudflare.com/cloudflare-public-v2.gpg | sudo tee /usr/share/keyrings/cloudflare-public-v2.gpg >/dev/null")
|
| 210 |
run_cmd("echo 'deb [signed-by=/usr/share/keyrings/cloudflare-public-v2.gpg] https://pkg.cloudflare.com/cloudflared any main' | sudo tee /etc/apt/sources.list.d/cloudflared.list")
|
| 211 |
+
run_cmd("sudo apt-get update && sudo apt-get install cloudflared -y", quiet=True)
|
| 212 |
|
| 213 |
ssh_dir = os.path.expanduser("~/.ssh")
|
| 214 |
os.makedirs(ssh_dir, exist_ok=True)
|
|
|
|
| 220 |
os.chmod(config_path, 0o600)
|
| 221 |
logging.info(f"✅ SSH config for {cf_ssh} generated successfully.")
|
| 222 |
else:
|
| 223 |
+
run_cmd(f"sudo cloudflared service install {cf_token}", quiet=True)
|
| 224 |
|
| 225 |
def setup_ssh():
|
| 226 |
logging.info('-----------SSH配置开始-------------')
|
| 227 |
+
run_cmd("apt update && apt install openssh-server vim -y", quiet=True)
|
| 228 |
run_cmd("sudo sed -i '/PasswordAuthentication/s/^#//g' /etc/ssh/ssh_config")
|
| 229 |
run_cmd("sudo sed -i '/PermitRootLogin prohibit-password/s/prohibit-password/yes/' /etc/ssh/sshd_config")
|
| 230 |
|
| 231 |
run_cmd("echo 'root:qilan' | sudo chpasswd")
|
| 232 |
run_cmd("echo 'PermitRootLogin yes' | sudo tee -a /etc/ssh/sshd_config")
|
| 233 |
+
run_cmd("service ssh restart", quiet=True)
|
| 234 |
run_cmd("export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -v '/opt/conda/lib' | paste -sd ':') ")
|
| 235 |
logging.info('-----------SSH配置结束-------------')
|
| 236 |
|
| 237 |
def generate_ssh_key():
|
| 238 |
+
run_cmd("rm -f ~/.ssh/id_rsa ~/.ssh/id_rsa.pub", quiet=True)
|
| 239 |
+
run_cmd("ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa -N ''", quiet=True)
|
| 240 |
run_cmd('chmod 600 ~/.ssh/id_rsa')
|
| 241 |
logging.info("SSH key pair generated.")
|
| 242 |
|
|
|
|
| 265 |
|
| 266 |
def compress_folder():
|
| 267 |
global last_uploaded_size
|
| 268 |
+
run_cmd('rm -rf /a/', ignore_errors=True, quiet=True) # 修复了这里的报错
|
| 269 |
os.makedirs('/a', exist_ok=True)
|
| 270 |
|
| 271 |
with lock:
|
|
|
|
| 281 |
run_cmd(f'tar -cvf - {data_folder} | pigz -p 2 -1 > {zip_file_path}', quiet=True)
|
| 282 |
|
| 283 |
file_path = "/a/sillytavern.ctk"
|
| 284 |
+
run_cmd(f'mv {zip_file_path} {file_path}', ignore_errors=True)
|
| 285 |
+
if not os.path.exists(file_path):
|
| 286 |
+
logging.error("压缩文件未生成!")
|
| 287 |
+
return
|
| 288 |
+
|
| 289 |
file_size = os.path.getsize(file_path)
|
| 290 |
|
| 291 |
if file_size < (800 * 1024 ** 2):
|
|
|
|
| 309 |
|
| 310 |
def kill_frpc_processes():
|
| 311 |
try:
|
| 312 |
+
subprocess.run(['pkill', '-f', 'frpc'], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
| 313 |
logging.info("旧的 frpc 进程已清理。")
|
| 314 |
except subprocess.CalledProcessError:
|
| 315 |
pass # 如果没有进程,直接忽略
|
|
|
|
| 322 |
frpc_cmd = ['/content/frp/frpc', '-c', config_file_path]
|
| 323 |
|
| 324 |
if backstage:
|
| 325 |
+
subprocess.Popen(frpc_cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
| 326 |
else:
|
| 327 |
+
run_cmd(f'/content/frp/frpc -c {config_file_path}', quiet=True)
|
| 328 |
|
| 329 |
def Run_SillyTavern():
|
| 330 |
"""启动 Node 服务"""
|
| 331 |
os.chdir(data_folder)
|
| 332 |
try:
|
|
|
|
| 333 |
run_cmd(f'yes | sh {data_folder}/start.sh', quiet=True)
|
| 334 |
logging.info("server.js 已启动")
|
| 335 |
except Exception as e:
|
|
|
|
| 354 |
json.dump(ini_content, json_file, indent=4)
|
| 355 |
run_cmd("chmod 600 ~/.kaggle/kaggle.json")
|
| 356 |
|
| 357 |
+
run_cmd(f"rm -rf /a /sillytavern /*.zi* {data_folder}", ignore_errors=True, quiet=True)
|
| 358 |
os.makedirs(data_folder, exist_ok=True)
|
| 359 |
os.chdir('/')
|
| 360 |
|
|
|
|
| 374 |
copy_public_key_to_remote(cf_ssh, 22, "root", "qilan")
|
| 375 |
run_cmd(f"sshpass -p 'qilan' rsync -avz --timeout=600 -e 'ssh -p 22 -o StrictHostKeyChecking=no' root@{cf_ssh}:{data_folder}/ {data_folder}/")
|
| 376 |
else:
|
| 377 |
+
run_cmd(f"7z x /{huggingface_Data_name}.zip -o/ -y", quiet=True)
|
| 378 |
+
run_cmd("mv /sillytavern.tck sillytavern.tar.gz", ignore_errors=True, quiet=True)
|
| 379 |
+
run_cmd("mv /sillytavern.ctk sillytavern.tar.gz", ignore_errors=True, quiet=True)
|
| 380 |
run_cmd("tar -xvpf /sillytavern.tar.gz -C / --use-compress-program=pigz > /dev/null")
|
| 381 |
|
| 382 |
+
run_cmd("rm -f ip.py", quiet=True)
|
| 383 |
+
run_cmd("wget -q -O /root/SillyTavern/ip.py https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip.py")
|
| 384 |
+
run_cmd("python /root/SillyTavern/ip.py", ignore_errors=True, quiet=True)
|
| 385 |
|
| 386 |
os.chdir(data_folder)
|
| 387 |
+
run_cmd("nvm install node && nvm use node && npm install -y", quiet=True)
|
| 388 |
+
run_cmd(f'yes | sh {data_folder}/start.sh', quiet=True)
|
| 389 |
|
| 390 |
threading.Thread(target=Run_SillyTavern, daemon=True).start()
|
| 391 |
logging.info('-----------SillyTavern 部署结束-------------')
|
|
|
|
| 405 |
|
| 406 |
# 2. 启动核心服务
|
| 407 |
threading.Thread(target=setup_sillytavern, daemon=True).start()
|
|
|
|
| 408 |
|
| 409 |
+
# ================= 关键修复区 =================
|
| 410 |
+
logging.info("正在等待数据下载和解压,这可能需要几分钟,请耐心等待...")
|
| 411 |
+
|
| 412 |
+
# 智能等待机制:不再死等60秒,而是每5秒检查一次,直到文件出现(最多等30分钟防止卡死)
|
| 413 |
+
wait_seconds = 0
|
| 414 |
+
while not os.path.exists(f'{data_folder}/start.sh'):
|
| 415 |
+
time.sleep(5)
|
| 416 |
+
wait_seconds += 5
|
| 417 |
+
if wait_seconds % 60 == 0:
|
| 418 |
+
logging.info(f"已等待 {wait_seconds // 60} 分钟,继续解压中...")
|
| 419 |
+
if wait_seconds > 1800: # 30分钟超时检测
|
| 420 |
+
logging.error("下载/解压超时(超过30分钟)!")
|
| 421 |
+
break
|
| 422 |
+
|
| 423 |
+
if os.path.exists(f'{data_folder}/start.sh'):
|
| 424 |
+
logging.info("SillyTavern 基础文件已就绪!")
|
| 425 |
+
# ===============================================
|
| 426 |
+
|
| 427 |
# 3. 写入监控配置
|
| 428 |
config = configparser.ConfigParser()
|
| 429 |
config.add_section('general')
|
|
|
|
| 431 |
with open('/config.ini', 'w') as configfile:
|
| 432 |
config.write(configfile)
|
| 433 |
|
| 434 |
+
run_cmd("rm -rf /qilan-st9.zip /sillytavern.tar.gz", ignore_errors=True, quiet=True)
|
| 435 |
|
| 436 |
# 4. 后台进程管理
|
| 437 |
if os.path.exists(f'{data_folder}/start.sh'):
|