no scripts folder
This commit is contained in:
parent
0e7485f171
commit
371aa2b7fd
8
Makefile
8
Makefile
@ -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."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user