From 94b160d33a98312b7caff3de26a406f17af5dcb6 Mon Sep 17 00:00:00 2001 From: Gordon Grant-Stuart Date: Mon, 5 Dec 2022 22:08:13 +0000 Subject: [PATCH] moop --- tunnelkeeper | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tunnelkeeper b/tunnelkeeper index 85cbad4..32c88bb 100755 --- a/tunnelkeeper +++ b/tunnelkeeper @@ -6,16 +6,11 @@ BASEDIR="${REALPATH%/*}" rm $BASEDIR/var/*.conf &>/dev/null # Create separate .conf files in var/ from etc/tunnelkeeper.conf awk -v "dir=$BASEDIR/var" ' /^\[/ {sec=$1; gsub("[\[\]]","",sec)} - !/^\[/ {print >> dir"/"sec".conf"}' < $BASEDIR/etc/tunnelkeeper.conf + !/^\[/ {print >> dir"/"sec".conf"}' < $BASEDIR/etc/tunnelkeeper.conf &>/dev/null SSHCONF="$BASEDIR/var/ssh.conf" TKCONF="$BASEDIR/var/settings.conf" -if [[ ! -f "$SSHCONF" ]]; then - echo "Config file \"$SSHCONF\" does not exist" - exit 1 -fi - function ruroot () { if [[ $UID -ne 0 ]]; then echo "You must be root to do this"