wg-installer: delete old interfaces
authorNick Hainke <vincent@systemli.org>
Sat, 13 Mar 2021 19:55:02 +0000 (20:55 +0100)
committerPolynomdivision <vincent@systemli.org>
Sun, 14 Mar 2021 10:27:07 +0000 (11:27 +0100)
commit36dc9b3f797dd04d075d9b6c36fece68d03470fe
treef202a3deee1d8facda2b9f8dd6c5260405d9d569
parent17b18d825cc385fc2df0fa2f6a5e7775d778ef65
wg-installer: delete old interfaces

Add "wg_check_interfaces" and specify a timeout in the config file.
This allows to delete not used wireguard-interfaces automatically.

For example a cronjob can be installed that calls:
  . /usr/share/wginstaller/wg_functions.sh && wg_check_interfaces

Signed-off-by: Nick Hainke <vincent@systemli.org>
net/wg-installer/wg-server/config/wgserver.conf
net/wg-installer/wg-server/lib/wg_functions.sh