Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-01 16:45:27 -06:00
parent 681feb05b3
commit 29d08436b8

View File

@@ -82,6 +82,7 @@ case "$1" in
esac esac
done done
if [ "${NEW_SITE}" != "" ] && [ "${SITE_TYPE}" != "" ]; then
echo -e "${idsCL[LightGreen]}Setting up new site for '${idsCL[Yellow]}${NEW_SITE}${idsCL[LightGreen]}'...${idsCL[Default]}" echo -e "${idsCL[LightGreen]}Setting up new site for '${idsCL[Yellow]}${NEW_SITE}${idsCL[LightGreen]}'...${idsCL[Default]}"
echo "" echo ""
mkdir -p /var/www/${NEW_SITE}/{public_folder,nginx_logs} mkdir -p /var/www/${NEW_SITE}/{public_folder,nginx_logs}
@@ -126,6 +127,11 @@ case "$1" in
echo "" echo ""
echo -e "${idsCL[LightGreen]}The new site for '${idsCL[LightGreen]}${NEW_SITE}${idsCL[Default]}' has been created.${idsCL[Default]}" echo -e "${idsCL[LightGreen]}The new site for '${idsCL[LightGreen]}${NEW_SITE}${idsCL[Default]}' has been created.${idsCL[Default]}"
echo "" echo ""
else
echo "Missing parameters"
echo ""
echo -e "Usage: ${idsCL[Yellow]}nodemgmt newcert${idsCL[Default]} { ${idsCL[Yellow]}-site${idsCL[Default]} {domain address} | ${idsCL[Yellow]}-type${idsCL[Default]} {'local' or 'proxy'} | ${idsCL[ Yellow]}-ssl${idsCL[Default]} {true or false} | ${idsCL[Yellow]}certrenew${idsCL[Default]} | ${idsCL[ Yellow]}-proxy_scheme${idsCL[Default]} {http or https} | ${idsCL[ Yellow]}-proxy_host${idsCL[Default]} {IP or FQDN} | ${idsCL[ Yellow]}-proxy_port${idsCL[Default]} {host port} }"
fi
;; ;;
update) update)