From c2c5adbd45c0145237c6a6dd78bcae603f6cb40b Mon Sep 17 00:00:00 2001 From: sudoers Date: Wed, 14 Aug 2019 16:12:43 +0000 Subject: [PATCH] Bugfix bash --- admin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin.sh b/admin.sh index f62fbbc..e49043b 100644 --- a/admin.sh +++ b/admin.sh @@ -7,11 +7,11 @@ for byod in /home/*/byod; do domain=$(cat $byod) echo "$user is requesting $domain" if [ -s /etc/nginx/sites-enabled/byod-$user-$domain.conf ]; then - echo "byod already configured for $user and $domain" + echo "byod already configured for $user at $domain" continue else domainip=$(dig +short a $domain) - if [ "$bestip" == "$domainip"] + if [ "$bestip" == "$domainip" ] then sed -e "s//$user/" -e "s//$domain/" template.conf \ > /etc/nginx/sites-available/byod-$user-$domain.conf