From 504daad9e18bbf111a2c0cd8bedf153c1090ab34 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 27 Dec 2021 01:52:30 -0800 Subject: [PATCH] Simplify wget instructions; use FHS compliant paths Paths under /usr/bin and /usr/lib are generally managed by the system package manager; use /usr/local/bin and /etc instead --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5cbf8d4..d2098d1 100644 --- a/README.md +++ b/README.md @@ -10,19 +10,17 @@ ## Installing & Updating -1) Download the latest release from the releases page and move the binary to the ``/urs/bin/`` directory under the filename ``pndpd``. -2) Allow executing the file by running ``chmod +x /usr/bin/pndpd`` +1) Download the latest release from the releases page and move the binary to the ``/usr/local/bin/`` directory under the filename ``pndpd``. +2) Allow executing the file by running ``chmod +x /usr/local/bin/pndpd`` 3) **For systemd users:** Install the service unit file ```` -wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.service -mv pndpd.service /usr/lib/systemd/system/ +wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.service -P /etc/systemd/system/ systemctl enable pndpd.service ```` 4) Download and install the config file ```` -wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.conf -mkdir -p /etc/pndpd/ -mv pndpd.conf /etc/pndpd/ +mkdir -p /etc/pndpd +wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.conf -P /etc/pndpd/ ```` 5) Edit the config at ``/etc/pndpd/pndpd.conf`` and then start the service using ``service pndpd start``