Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-28 11:29:53 -06:00
parent 0a1be7bc96
commit 6d2e508c4f

View File

@@ -93,16 +93,16 @@ case "$1" in
nid=1
for nip in "${NODE_HOSTS[@]}"
do
echo -e "${idsCL[Yellow]}[[Setting folder permissions for Node ${nid} ($nip)]]${idsCL[Default]}"
echo -en "${idsCL[Cyan]}LetsEncrypt Certificates... ${idsCL[Default]}"
echo -e "${idsCL[Yellow]}Setting folder permissions for Node ${nid} ($nip)${idsCL[Default]}"
echo -en "${idsCL[Cyan]}LetsEncrypt Certs... ${idsCL[Default]}"
ssh root@${nip} chown -R root:letsencrypt /etc/letsencrypt
ssh root@${nip} chmod -R 6775 /etc/letsencrypt
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
echo -en "${idsCL[Cyan]}Webserver folders... ${idsCL[Default]}"
echo -en "${idsCL[Cyan]}Webserver folders... ${idsCL[Default]}"
ssh root@${nip} chown -R www-data:www-data /var/www
ssh root@${nip} chmod -R 7775 /var/www
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
echo -en "${idsCL[Cyan]}Gogs Folder... ${idsCL[Default]}"
echo -en "${idsCL[Cyan]}Gogs Folder... ${idsCL[Default]}"
ssh root@${nip} chown -R gogs:gogs /var/www/gogs
ssh root@${nip} chmod -R 7775 /var/www/gogs
echo -e "${idsCL[Green]}OK${idsCL[Default]}"