From e792c8eb4400b28520b29103332e7e7507280b34 Mon Sep 17 00:00:00 2001 From: Chris Wiggins Date: Thu, 5 Sep 2013 23:40:03 +1200 Subject: [PATCH 1/2] Move version check from zoneminder.com to repository --- scripts/zmupdate.pl | 2 +- scripts/zmupdate.pl.in | 2 +- version | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 version diff --git a/scripts/zmupdate.pl b/scripts/zmupdate.pl index 7aa64ac3a..a35d1139e 100644 --- a/scripts/zmupdate.pl +++ b/scripts/zmupdate.pl @@ -158,7 +158,7 @@ if ( $check && ZM_CHECK_FOR_UPDATES ) } use strict 'subs'; } - my $req = HTTP::Request->new( GET=>'http://www.zoneminder.com/version' ); + my $req = HTTP::Request->new( GET=>'https://raw.github.com/chriswiggins/ZoneMinder/master/version' ); my $res = $ua->request($req); if ( $res->is_success ) diff --git a/scripts/zmupdate.pl.in b/scripts/zmupdate.pl.in index 75a0a83f3..9c1779013 100644 --- a/scripts/zmupdate.pl.in +++ b/scripts/zmupdate.pl.in @@ -163,7 +163,7 @@ if ( $check && ZM_CHECK_FOR_UPDATES ) } use strict 'subs'; } - my $req = HTTP::Request->new( GET=>'http://www.zoneminder.com/version' ); + my $req = HTTP::Request->new( GET=>'https://raw.github.com/chriswiggins/ZoneMinder/master/version' ); my $res = $ua->request($req); if ( $res->is_success ) diff --git a/version b/version new file mode 100644 index 000000000..dd43a143f --- /dev/null +++ b/version @@ -0,0 +1 @@ +1.26.1 From d6440ca70ef16f4920ce9b8e4f0e9dd949f67160 Mon Sep 17 00:00:00 2001 From: Chris Wiggins Date: Thu, 5 Sep 2013 23:50:51 +1200 Subject: [PATCH 2/2] Change repo to ZoneMinder for pull request --- scripts/zmupdate.pl | 2 +- scripts/zmupdate.pl.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/zmupdate.pl diff --git a/scripts/zmupdate.pl b/scripts/zmupdate.pl old mode 100644 new mode 100755 index a35d1139e..aba23ea23 --- a/scripts/zmupdate.pl +++ b/scripts/zmupdate.pl @@ -158,7 +158,7 @@ if ( $check && ZM_CHECK_FOR_UPDATES ) } use strict 'subs'; } - my $req = HTTP::Request->new( GET=>'https://raw.github.com/chriswiggins/ZoneMinder/master/version' ); + my $req = HTTP::Request->new( GET=>'https://raw.github.com/ZoneMinder/ZoneMinder/master/version' ); my $res = $ua->request($req); if ( $res->is_success ) diff --git a/scripts/zmupdate.pl.in b/scripts/zmupdate.pl.in index 9c1779013..5fe59b65b 100644 --- a/scripts/zmupdate.pl.in +++ b/scripts/zmupdate.pl.in @@ -163,7 +163,7 @@ if ( $check && ZM_CHECK_FOR_UPDATES ) } use strict 'subs'; } - my $req = HTTP::Request->new( GET=>'https://raw.github.com/chriswiggins/ZoneMinder/master/version' ); + my $req = HTTP::Request->new( GET=>'https://raw.github.com/ZoneMinder/ZoneMinder/master/version' ); my $res = $ua->request($req); if ( $res->is_success )