mirror of
https://github.com/r3bo0tbx1/tor-guard-relay.git
synced 2026-04-06 00:32:04 +02:00
fix(setup): add error handling for configuration write failure and confirm successful save
This commit is contained in:
11
tools/setup
11
tools/setup
@@ -401,4 +401,13 @@ DirPort $DIRPORT
|
||||
|
||||
# Bandwidth Limits
|
||||
RelayBandwidthRate $BANDWIDTH KB
|
||||
RelayBandwidthBurst $((BANDWIDTH * 2)) KB
|
||||
RelayBandwidthBurst $((BANDWIDTH * 2)) KB
|
||||
|
||||
EOF
|
||||
then
|
||||
echo -e "${RED}❌ Failed to write configuration${NC}"
|
||||
restore_from_backup
|
||||
exit 1
|
||||
else
|
||||
echo -e "${GREEN}✅ Configuration saved: $CONFIG_FILE${NC}"
|
||||
fi
|
||||
Reference in New Issue
Block a user