Add purge command to remove all config files

This commit is contained in:
2022-12-02 16:36:24 +01:00
parent f45cc7985d
commit 61dbd439a7
2 changed files with 12 additions and 1 deletions

View File

@ -41,6 +41,11 @@ case "$1" in
/scripts/show-client.sh $2
exit 0
;;
'purge')
cd /etc/wireguard
rm *.conf *.png
exit 0
;;
'help')
echo "Usage: <Command> [<Arguments>]"
echo
@ -50,6 +55,7 @@ case "$1" in
echo "add Add new client"
echo "rm Remove client by ID"
echo "show Show client config with qrcode"
echo "purge Remove server config and all client configs"
echo "help Show this help message"
echo
;;