Update webpanel_shell.sh
This commit is contained in:
@ -200,8 +200,10 @@ start_service() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart Caddy service
|
# Reload systemd and enable/start Caddy service
|
||||||
systemctl restart hysteria-caddy.service
|
systemctl daemon-reload
|
||||||
|
systemctl enable hysteria-caddy.service
|
||||||
|
systemctl start hysteria-caddy.service
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "${red}Error: Failed to restart Caddy.${NC}"
|
echo -e "${red}Error: Failed to restart Caddy.${NC}"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user