summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-03-26 08:02:21 +0100
committerxengineering <me@xengineering.eu>2022-03-26 08:02:21 +0100
commit84e31db2f3242b709c5d310a63ee2dc720c67d3f (patch)
treef44472df44b8c843c5d0fd4c3919ea361dad689d
parentb44e498555143bf0afcb96efcf5531cd14b28fcb (diff)
downloadxbot-main.tar
xbot-main.tar.zst
xbot-main.zip
Avoid sudo in MakefileHEADmain
The user should care about priviledge escalation because there are also alternatives to sudo (like doas).
-rw-r--r--Makefile4
-rw-r--r--README.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3315f2d..4bdd4f5 100644
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,10 @@ install: all
mkdir -p $(HOME)/.config/xbot/
touch $(HOME)/.config/xbot/profile.ini
chmod 600 $(HOME)/.config/xbot/profile.ini
- sudo $(INSTALL_PROGRAM) $(TARGET_EXEC) $(bindir)/xbot
+ $(INSTALL_PROGRAM) $(TARGET_EXEC) $(bindir)/xbot
uninstall:
- sudo rm -f $(bindir)/xbot
+ rm -f $(bindir)/xbot
clean:
rm -r build
diff --git a/README.md b/README.md
index d3b5dd3..b0fc242 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ Install this software from source on GNU/Linux systems like this:
git clone https://cgit.xengineering.eu/xbot
cd xbot
make all
-make install
+sudo make install
```
Make sure to have a XMPP account for you and your bot. There are a lot of free