removed sudo from Makefiles

Documentation must be updated to indicate when to use sudo.

closes #291
This commit is contained in:
Gustavo Iñiguez Goia 2020-12-11 23:42:47 +01:00
parent 719c906267
commit f751dc13c6
3 changed files with 6 additions and 5 deletions

View file

@ -22,9 +22,9 @@ clean:
@cd proto && make clean
run:
cd ui && sudo pip3 install --upgrade . && cd ..
cd ui && pip3 install --upgrade . && cd ..
opensnitch-ui --socket unix:///tmp/osui.sock &
sudo ./daemon/opensnitchd -ui-socket unix:///tmp/osui.sock -cpu-profile cpu.profile -mem-profile mem.profile
./daemon/opensnitchd -rules-path /etc/opensnitchd/rules -ui-socket unix:///tmp/osui.sock -cpu-profile cpu.profile -mem-profile mem.profile
test:
clear
@ -43,8 +43,8 @@ adblocker:
clear
python make_ads_rules.py
clear
cd ui && sudo pip3 install --upgrade . && cd ..
cd ui && pip3 install --upgrade . && cd ..
opensnitch-ui --socket unix:///tmp/osui.sock &
sudo ./daemon/opensnitchd -ui-socket unix:///tmp/osui.sock
./daemon/opensnitchd -rules-path /etc/opensnitchd/rules -ui-socket unix:///tmp/osui.sock

View file

@ -5,6 +5,7 @@ install:
@cp opensnitchd /usr/local/bin/
@cp opensnitchd.service /etc/systemd/system/
@cp default-config.json /etc/opensnitchd/
@cp system-fw.json /etc/opensnitchd/
@systemctl daemon-reload
opensnitchd:

View file

@ -7,7 +7,7 @@ opensnitch/resources_rc.py: deps
@pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
deps:
@sudo pip3 install -r requirements.txt
@pip3 install -r requirements.txt
clean:
@rm -rf *.pyc