Update nodemgmt-scripts.sh
This commit is contained in:
@@ -9,7 +9,7 @@ source /opt/idssys/nodemgmt/settings.conf
|
||||
source /opt/idssys/defaults/colors.inc
|
||||
source /opt/idssys/defaults/default.inc
|
||||
|
||||
NODE_HOSTS=`mysql -u sqluser -pdcs2057 -s -N -e "SELECT value FROM idssys.nodemgmt WHERE var = 'NODE_HOSTS'"`
|
||||
NODE_HOSTS=`mysql -h 10.5.10.56 -P 3308 -u sqluser -pdcs2057 -s -N -e "SELECT value FROM idssys.nodemgmt WHERE var = 'NODE_HOSTS'"`
|
||||
|
||||
IFS=,
|
||||
NODE_HOSTS=(${NODE_HOSTS})
|
||||
@@ -46,19 +46,20 @@ case "$1" in
|
||||
exit 0
|
||||
;;
|
||||
|
||||
newcert)
|
||||
"$0" haperoxy-stop
|
||||
echo -e "${Green}Requesting Certificate for '${BBlue}$2${Green}'...${idsCL[Default]}"
|
||||
# $DAEMON certonly --standalone -d $2
|
||||
$DAEMON certonly --webroot -w /var/www/html -d $2
|
||||
# chown -R root:letsencrypt /etc/letsencrypt
|
||||
# chmod -R 6775 /etc/letsencrypt
|
||||
"$0" haproxy-start
|
||||
echo -e "${Green}Waiting for Certificate Replication...${idsCL[Default]}"
|
||||
sleep 20
|
||||
"$0" nginx-reload
|
||||
exit 0
|
||||
;;
|
||||
newcert)
|
||||
|
||||
"$0" service haproxy stop
|
||||
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}$2$${idsCL[LightGreen]}'...${idsCL[Default]}"
|
||||
# $DAEMON certonly --standalone -d $2
|
||||
$DAEMON certonly --webroot -w /var/www/html -d $2
|
||||
# chown -R root:letsencrypt /etc/letsencrypt
|
||||
# chmod -R 6775 /etc/letsencrypt
|
||||
"$0" service haproxy start
|
||||
echo -e "${idsCL[LightGreen]}Waiting for Certificate Replication...${idsCL[Default]}"
|
||||
sleep 20
|
||||
"$0" service nginx reload
|
||||
exit 0
|
||||
;;
|
||||
|
||||
newmass)
|
||||
echo -e "${Green}Requesting Certificate for '${BBlue}$2${Green}'...${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user