From 0e7b583829baf532456cb1ab27a5d1a92e727e0e Mon Sep 17 00:00:00 2001 From: Chris Frankland-Wright Date: Sat, 30 Aug 2025 21:43:00 +0100 Subject: [PATCH] fix bug with service creation --- setup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setup.sh b/setup.sh index 29e0bfd..d14f337 100644 --- a/setup.sh +++ b/setup.sh @@ -133,6 +133,17 @@ if [ "$PKG_MANAGER" == "apt" ]; then make sudo make install + # Manually install the systemd service file as 'make install' might not do it. + # This makes the script more robust. + if [ -f "debian/nodogsplash.service" ]; then + echo "Manually installing systemd service file..." + sudo cp debian/nodogsplash.service /etc/systemd/system/nodogsplash.service + # Reload systemd to recognize the new service + sudo systemctl daemon-reload + else + echo "⚠️ Warning: nodogsplash.service file not found in source. Cannot set up as a service." + fi + # Clean up the build directory cd .. sudo rm -rf "$BUILD_DIR"