test
This commit is contained in:
parent
f51b0c509b
commit
784556b1fa
10
Makefile
10
Makefile
@ -175,10 +175,10 @@ spirilink-software:
|
||||
.PHONY: setup-webapp-service
|
||||
setup-webapp-service:
|
||||
@echo "Setting up web app service..."
|
||||
@if [ -d ~/home/spiri/Spiri-Base ]; then \
|
||||
cd ~/home/spiri/Spiri-Base && git pull || (echo "Error updating repository. Check network and repository access." && exit 1); \
|
||||
@if [ -d /home/spiri/Spiri-Base ]; then \
|
||||
cd /home/spiri/Spiri-Base && git pull || (echo "Error updating repository. Check network and repository access." && exit 1); \
|
||||
else \
|
||||
git clone https://git.spirirobotics.com/aepko/Spiri-Base.git ~/home/spiri/Spiri-Base || (echo "Error cloning repository. Check network and repository access." && exit 1); \
|
||||
git clone https://git.spirirobotics.com/aepko/Spiri-Base.git /home/spiri/Spiri-Base || (echo "Error cloning repository. Check network and repository access." && exit 1); \
|
||||
cd ~/Spiri-Base && git sparse-checkout init --cone && git sparse-checkout set .output; \
|
||||
fi;
|
||||
@if [ -f $(CURDIR)/webapp.service ]; then \
|
||||
@ -194,8 +194,8 @@ setup-webapp-service:
|
||||
.PHONY: setup-rtsp-service
|
||||
setup-rtsp-service:
|
||||
@echo "Setting up RTSP server..."
|
||||
$(SUDO) mkdir -p ~/home/spiri/rtsp
|
||||
$(SUDO) cp $(CURDIR)/rtsp_server.py ~/home/spiri/rtsp/
|
||||
$(SUDO) mkdir -p /home/spiri/rtsp
|
||||
$(SUDO) cp $(CURDIR)/rtsp_server.py /home/spiri/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; \
|
||||
|
Loading…
Reference in New Issue
Block a user