mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
fix bug with service creation
This commit is contained in:
parent
e4c59b412b
commit
0e7b583829
1 changed files with 11 additions and 0 deletions
11
setup.sh
11
setup.sh
|
|
@ -133,6 +133,17 @@ if [ "$PKG_MANAGER" == "apt" ]; then
|
||||||
make
|
make
|
||||||
sudo make install
|
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
|
# Clean up the build directory
|
||||||
cd ..
|
cd ..
|
||||||
sudo rm -rf "$BUILD_DIR"
|
sudo rm -rf "$BUILD_DIR"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue