File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 4343# 2017-01-01 updated checks from shellcheck (1.13)
4444# 2017-01-09 correct typo in cleanup (to remove all tmp files) (1.14)
4545# 2017-01-12 updated to ignore -r flag if -c is used. (1.15)
46+ # 2017-01-31 updated variable for auto upgrade location (1.16)
4647# ---------------------------------------------------------------------------
4748
4849PROGNAME=${0##*/ }
49- VERSION=" 1.15 "
50+ VERSION=" 1.16 "
5051
5152ORIGCMD=" $0 $* "
52- UPDATE_LOCATION =" https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
53+ CODE_LOCATION =" https://raw.githubusercontent.com/srvrco/checkssl/master/checkssl"
5354RENEW_ALERT=" 30" # set to number of days to be alerted for certificate renewal ( default, can be changed with -expires argument)
5455_QUIET=0
5556_UPGRADE=0
@@ -178,7 +179,7 @@ info() {
178179}
179180
180181check_upgrade () {
181- latestcode=$( curl --silent " $UPDATE_LOCATION " )
182+ latestcode=$( curl --silent " $CODE_LOCATION " )
182183 latestversion=$( echo " $latestcode " | grep VERSION= | head -1| awk -F' "' ' {print $2}' )
183184 latestvdec=$( echo " $latestversion " | tr -d ' .' )
184185 localvdec=$( echo " $VERSION " | tr -d ' .' )
You can’t perform that action at this time.
0 commit comments