Removes (config.yaml)

This commit is contained in:
Whispering Wind
2024-06-25 21:56:51 +03:30
committed by GitHub
parent d3e7f63ecf
commit bbf1e87d68

View File

@ -82,6 +82,7 @@ jq --arg port "$port" \
# Step 11: Modify the systemd service file to use config.json # Step 11: Modify the systemd service file to use config.json
echo "Updating hysteria-server.service to use config.json..." echo "Updating hysteria-server.service to use config.json..."
sed -i 's|(config.yaml)||' /etc/systemd/system/hysteria-server.service
sed -i 's|/etc/hysteria/config.yaml|/etc/hysteria/config.json|' /etc/systemd/system/hysteria-server.service sed -i 's|/etc/hysteria/config.yaml|/etc/hysteria/config.json|' /etc/systemd/system/hysteria-server.service
rm /etc/hysteria/config.yaml rm /etc/hysteria/config.yaml
sleep 1 sleep 1