This commit is contained in:
2019-01-28 09:51:25 -06:00
parent aea4396261
commit ef96649345
2 changed files with 4 additions and 3 deletions

View File

@@ -77,13 +77,12 @@ case "$1" in
do_with_root chown -R root:letsencrypt /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname) do_with_root chown -R root:letsencrypt /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
do_with_root chmod -R 6775 /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname) do_with_root chmod -R 6775 /etc/letsencrypt >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
sleep 20 sleep 20
"$0" service nginx reload >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname) "$0" service nginx reload >> /opt/idssys/nodemgmt/cert-renewal-run-$(hostname)
exit 0 exit 0
;; ;;
update) update)
echo -e "${idsCL[Green]}NodeMgmt has been updated.${idsCL[Default]}" echo -e "${idsCL[Green]} Updates C ompleted${idsCL[Default]}"
echo "" echo ""
exit 0;; exit 0;;

4
run.sh
View File

@@ -13,7 +13,9 @@ if [ "$1" != "service" ] && [ "$1" != "" ]; then
echo -e "Node hostname: ${node_hostname}" echo -e "Node hostname: ${node_hostname}"
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}" echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"
echo "" echo ""
echo -e "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}" if [ "$1" = "update" ]; then echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
else echo -e "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
fi
echo "" echo ""
cd /opt/idssys/defaults cd /opt/idssys/defaults
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then