Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-01 14:24:38 -06:00
parent 9cd868ca6d
commit ad4a99aa3c

View File

@@ -205,7 +205,7 @@ case "$1" in
for nip in "${NODE_HOSTS[@]}"
do
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
nip='localhost'
nip='localhost '
NCMD=''
else
NCMD="ssh root@${nip}"
@@ -216,7 +216,7 @@ case "$1" in
${NCMD} chmod -R 7775 /var/www/$NEW_SITE
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
else
echo -e "${idsCL[Yellow]}Setting folder permissions for iDS-Node{nid} (${nip})${idsCL[Default]}"
echo -e "${idsCL[Yellow]}Setting folder permissions for iDS-Node${nid} (${nip})${idsCL[Default]}"
echo -en "${idsCL[Cyan]}LetsEncrypt Certs ${idsCL[Default]}"
${NCMD} chown -R root:letsencrypt /etc/letsencrypt
${NCMD} chmod -R 6775 /etc/letsencrypt