mirror of
https://github.com/pcvolkmer/docker-wireguard-boringtun.git
synced 2025-04-19 21:36:49 +00:00
Add some messages
This commit is contained in:
parent
358b18b49d
commit
c88d16ca3d
@ -47,7 +47,8 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
'purge')
|
'purge')
|
||||||
cd /etc/wireguard
|
cd /etc/wireguard
|
||||||
rm *.conf *.png
|
rm *.conf *.png 2>/dev/null
|
||||||
|
echo "Removed all configuration files"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
'help')
|
'help')
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Configurations - sorted by creation date"
|
if [ ! -f "$DEVICE.conf" ]; then
|
||||||
echo
|
echo "No configuration: Use command 'init' to create configuration files"
|
||||||
echo "Server"
|
else
|
||||||
cat "$DEVICE.conf" | grep -e "# Client" -e "# <-" | grep -a "#" | sed "s/# //" | sed "s/<- //" | sed "s/\(.*\)\([0-9]\{4\}\)/Created: \1\2\n/"
|
echo "Configurations - sorted by creation date"
|
||||||
|
echo
|
||||||
|
echo "Server"
|
||||||
|
cat "$DEVICE.conf" | grep -e "# Client" -e "# <-" | grep -a "#" | sed "s/# //" | sed "s/<- //" | sed "s/\(.*\)\([0-9]\{4\}\)/Created: \1\2\n/"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user