more changes

This commit is contained in:
Grzegorz Surmann 2024-07-17 17:53:00 +00:00
parent bec51f5ed1
commit b5d532219a

View File

@ -1,37 +1,49 @@
# Installation # Installation
1. First, checkout the repository: **Quick and fast install**
```
git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist
cp /opt/bgpblist/etc/default/config.ini /opt/bgpblist/etc/config.ini
cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service
systemctl daemon-reload
systemctl enable bgpblacklist.service
systemctl start bgpblacklist.service
```
**Long install with config**
First, checkout the repository:
``` ```
git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist git clone https://git.funil.de/sinuspl/bgpblist /opt/bgpblist
``` ```
2. Copy the default config to create your own: Copy the default config to create your own:
``` ```
cp /opt/bgpblist/etc/default/config.ini /opt/bgpblist/etc/config.ini cp /opt/bgpblist/etc/default/config.ini /opt/bgpblist/etc/config.ini
``` ```
3. Edit the config.ini, if you are a customer: Edit the config.ini, if you are a customer:
``` ```
vim /opt/bgpblist/etc/config.ini vim /opt/bgpblist/etc/config.ini
``` ```
If not, dont't edit, it will use the defaults. If not, dont't edit, it will use the defaults.
4. Copy the systemd unit file: Copy the systemd unit file:
``` ```
cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service
``` ```
5. Reload the systemd: Reload the systemd:
``` ```
systemctl daemon-reload systemctl daemon-reload
``` ```
6. Enable the unit: Enable the unit:
``` ```
systemctl enable bgpblacklist.service systemctl enable bgpblacklist.service
``` ```
7. Start the daemon: Start the daemon:
``` ```
systemctl start bgpblacklist.service systemctl start bgpblacklist.service
``` ```