diff options
author | Eddy Pedroni <epedroni@pm.me> | 2025-03-01 17:21:37 +0100 |
---|---|---|
committer | Eddy Pedroni <epedroni@pm.me> | 2025-03-01 17:21:37 +0100 |
commit | 6986506571abf4d76ca899bca9ef7afe2b8c7b81 (patch) | |
tree | f47372cf8138a8e327ad0b4fa47de507ed186bd8 /Makefile | |
parent | 8caa2cee3d512388b465bf8a0167fbe04afcd771 (diff) |
Fix deployment
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -21,17 +21,16 @@ gui: .venv/touchfile ./.venv/bin/python web-project/src/solo_tool_web.py 8080 install: deployment/solo-tool.service deployment/start-solo-tool.sh - sudo install -o root -g root -m 644 deployment/solo-tool.service /etc/systemd/system - sudo mkdir -p /var/lib/solo-tool - sudo install -o eddy -g eddy -m 700 deployment/start-solo-tool.sh /var/lib/solo-tool - sudo systemctl daemon-reload - sudo systemctl enable solo-tool.service - sudo systemctl restart solo-tool.service + mkdir -p ~/.config/systemd/user + install -o eddy -g eddy -m 644 deployment/solo-tool.service ~/.config/systemd/user + chmod 755 deployment/start-solo-tool.sh + systemctl --user daemon-reload + systemctl --user enable solo-tool.service + systemctl --user restart solo-tool.service uninstall: - sudo systemctl disable --now solo-tool.service - sudo rm -rf /var/lib/solo-tool - sudo rm /etc/systemd/system/solo-tool.service - sudo systemctl daemon-reload + systemctl --user disable --now solo-tool.service + rm ~/.config/systemd/user/solo-tool.service + systemctl --user daemon-reload .PHONY: all test clean gui install uninstall |