From 4dd9215d1b10da895846b6a359efc15534b81b0d Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Sat, 22 Feb 2025 00:40:21 +0330 Subject: [PATCH] Fix permission --- core/scripts/hysteria2/restore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/scripts/hysteria2/restore.sh b/core/scripts/hysteria2/restore.sh index 83db366..43e3557 100644 --- a/core/scripts/hysteria2/restore.sh +++ b/core/scripts/hysteria2/restore.sh @@ -88,7 +88,8 @@ done rm -rf "$RESTORE_DIR" echo "Hysteria configuration restored successfully." - +chown hysteria:hysteria /etc/hysteria/ca.key /etc/hysteria/ca.crt +chmod 640 /etc/hysteria/ca.key /etc/hysteria/ca.crt python3 "$CLI_PATH" restart-hysteria2 > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "Error: Restart service failed'."