Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user