diff --git a/del-wg.sh b/del-wg.sh index 6ab5a30..77c3a56 100644 --- a/del-wg.sh +++ b/del-wg.sh @@ -1,5 +1,10 @@ #! /usr/bin/env bash +if [ $(id -u) -ne 0 ]; then + echo "[!!] This program must be run as root" + exit -1 +fi + if [ $# -ne 1 ]; then echo "[!!] I (just) need the base64 pubkey of the target client" exit 1