diff --git a/Makefile b/Makefile index aa99d80..a54f649 100644 --- a/Makefile +++ b/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; \