From b401f44a615818714f14548848f2ac800127dac3 Mon Sep 17 00:00:00 2001 From: ReturnFI <151555003+ReturnFI@users.noreply.github.com> Date: Thu, 5 Sep 2024 21:23:40 +0000 Subject: [PATCH] modify upgrade.sh --- upgrade.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/upgrade.sh b/upgrade.sh index 7df0341..0930c75 100644 --- a/upgrade.sh +++ b/upgrade.sh @@ -49,6 +49,13 @@ else echo "No traffic_data.json found to merge." fi +if [ ! -f /etc/hysteria/.configs.env ]; then + echo ".configs.env not found, creating it with default SNI=bts.com" + echo "SNI=bts.com" > /etc/hysteria/.configs.env +else + echo ".configs.env already exists." +fi + echo "Setting ownership and permissions" chown hysteria:hysteria /etc/hysteria/ca.key /etc/hysteria/ca.crt chmod 640 /etc/hysteria/ca.key /etc/hysteria/ca.crt