From 0edc306aa8b821f347267eb8457017d1b6f21914 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 12 Dec 2024 22:22:47 +0800 Subject: [PATCH] Update index.py --- plugins/alist/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/alist/index.py b/plugins/alist/index.py index 2e88b953c..40388c8f4 100755 --- a/plugins/alist/index.py +++ b/plugins/alist/index.py @@ -151,7 +151,6 @@ def initDreplace(): content = content.replace('{$SERVER_PATH}', service_path) mw.writeFile(file_bin, content) mw.execShell('chmod +x ' + file_bin) - openPort() # systemd @@ -164,7 +163,8 @@ def initDreplace(): se_content = se_content.replace('{$SERVER_PATH}', service_path) mw.writeFile(systemService, se_content) mw.execShell('systemctl daemon-reload') - + time.sleep(1) + openPort() return file_bin