modify upgrade.sh

This commit is contained in:
ReturnFI
2024-09-05 21:23:40 +00:00
parent 926db215d9
commit b401f44a61

View File

@ -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