From a374ee7b77996817fc63d9141e525ed14bd52ec1 Mon Sep 17 00:00:00 2001 From: tesla Date: Wed, 16 Apr 2025 16:09:39 +0330 Subject: [PATCH] Fixing problem of first installtion of hiddify and activate the systemd utint --- common/hiddify_installer.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/hiddify_installer.sh b/common/hiddify_installer.sh index 5a01a000d..01d93aad8 100755 --- a/common/hiddify_installer.sh +++ b/common/hiddify_installer.sh @@ -251,13 +251,17 @@ function post_update_tasks() { fi remove_lock $NAME + ln -sf /opt/hiddify-manager/hiddify-panel/hiddify-panel.service /etc/systemd/system/hiddify-panel.service + systemctl enable --now hiddify-panel.service + + ln -sf /opt/hiddify-manager/hiddify-panel/hiddify-panel-background-tasks.service /etc/systemd/system/hiddify-panel-background-tasks.service + systemctl enable --now hiddify-panel-background-tasks.service + if [ "$package_mode" != "docker" ];then if [[ $panel_update == 0 ]]; then systemctl kill -s SIGTERM hiddify-panel fi - systemctl start hiddify-panel - cd /opt/hiddify-manager/hiddify-panel if [ "$CREATE_EASYSETUP_LINK" == "true" ];then hiddify-panel-cli set-setting --key create_easysetup_link --val True