no scripts folder

This commit is contained in:
Alex 2024-12-13 09:33:31 -04:00
parent 0e7485f171
commit 371aa2b7fd

View File

@ -195,13 +195,13 @@ setup-webapp-service:
setup-rtsp-service:
@echo "Setting up RTSP server..."
$(SUDO) mkdir -p ~/rtsp
$(SUDO) cp $(CURDIR)/scripts/rtsp_server.py ~/rtsp/
@if [ -f $(CURDIR)/scripts/rtsp-server.service ]; then \
$(SUDO) cp $(CURDIR)/scripts/rtsp-server.service /etc/systemd/system/rtsp-server.service; \
$(SUDO) cp $(CURDIR)rtsp_server.py ~/rtsp/
@if [ -f $(CURDIR)rtsp-server.service ]; then \
$(SUDO) cp $(CURDIR)rtsp-server.service /etc/systemd/system/rtsp-server.service; \
$(SUDO) systemctl enable rtsp-server.service; \
$(SUDO) systemctl start rtsp-server.service; \
else \
echo "Error: rtsp-server.service not found in scripts folder."; \
echo "Error: rtsp-server.service not found in folder."; \
fi;
@echo "RTSP server set up and running."