Skip to content

Commit 23ef5cf

Browse files
authored
Merge pull request #4820 from tesilaaliset/fix/fix-hiddify-cli
Update Cli run and change the usage to the config_.josn file instead …
2 parents ea506b3 + b94c0b2 commit 23ef5cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

other/hiddify-cli/hiddify-cli.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Restart=always
88
RestartSec=3
99
WorkingDirectory=/opt/hiddify-manager/other/hiddify-cli
1010
EnvironmentFile=/opt/hiddify-manager/other/hiddify-cli/.env
11-
ExecStart=/opt/hiddify-manager/other/hiddify-cli/HiddifyCli run -c $SUB_LINK -d h_client_config.json
11+
ExecStart=/opt/hiddify-manager/other/hiddify-cli/HiddifyCli run -c config_.json -d h_client_config.json
1212
User=hiddify-cli
1313
[Install]
1414
WantedBy=multi-user.target

other/hiddify-cli/run.sh.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ echo "SUB_LINK=$SUB_LINK" > .env
1212
chown hiddify-cli .env
1313
chmod 600 .env*
1414
chown hiddify-cli -R .
15-
15+
echo "Updating Sublink config from hpanel to hiddifycli"
16+
curl -s "$SUB_LINK" -o config_.json
1617
systemctl restart hiddify-cli.service

0 commit comments

Comments
 (0)