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
This commit is contained in:
James Lu 2021-12-27 01:52:30 -08:00 committed by GitHub
parent 11110fb66b
commit 504daad9e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,19 +10,17 @@
## Installing & Updating ## Installing & Updating
1) Download the latest release from the releases page and move the binary to the ``/urs/bin/`` directory under the filename ``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/bin/pndpd`` 2) Allow executing the file by running ``chmod +x /usr/local/bin/pndpd``
3) **For systemd users:** Install the service unit file 3) **For systemd users:** Install the service unit file
```` ````
wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.service wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.service -P /etc/systemd/system/
mv pndpd.service /usr/lib/systemd/system/
systemctl enable pndpd.service systemctl enable pndpd.service
```` ````
4) Download and install the config file 4) Download and install the config file
```` ````
wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.conf mkdir -p /etc/pndpd
mkdir -p /etc/pndpd/ wget https://raw.githubusercontent.com/Kioubit/pndpd/master/pndpd.conf -P /etc/pndpd/
mv pndpd.conf /etc/pndpd/
```` ````
5) Edit the config at ``/etc/pndpd/pndpd.conf`` and then start the service using ``service pndpd start`` 5) Edit the config at ``/etc/pndpd/pndpd.conf`` and then start the service using ``service pndpd start``