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'."