Fix: Reload systemd before starting the service in install and upgrade functions

This commit is contained in:
Lloyd
2025-12-30 17:10:53 +00:00
parent 48076f0c32
commit a70d692546

View File

@@ -265,7 +265,8 @@ install_repeater() {
echo "" echo ""
echo "✓ Python package installation completed successfully!" echo "✓ Python package installation completed successfully!"
# Start the service # Reload systemd and start the service
systemctl daemon-reload
systemctl start "$SERVICE_NAME" systemctl start "$SERVICE_NAME"
else else
echo "" echo ""
@@ -401,6 +402,7 @@ upgrade_repeater() {
fi fi
echo "[8/9] Starting service..." echo "[8/9] Starting service..."
systemctl daemon-reload
systemctl start "$SERVICE_NAME" systemctl start "$SERVICE_NAME"
echo " ✓ Service started" echo " ✓ Service started"