Added --no-check-certificate to the wget requests for audio store files for audio store sync script
git-svn-id: svn://192.168.202.10@3756 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# syncronizes audio between audio store and this server
|
# syncronizes audio between audio store and this server
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Copyright (C) 2020 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
# Copyright (C) 2023 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||||
#
|
#
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
# 90513-0458 - First Build
|
# 90513-0458 - First Build
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
# 141125-1555 - Added audio_store_details audio file info gathering and DB population
|
# 141125-1555 - Added audio_store_details audio file info gathering and DB population
|
||||||
# 150712-2210 - Added touch of conf files to Asterisk will notice changes
|
# 150712-2210 - Added touch of conf files to Asterisk will notice changes
|
||||||
# 201002-1537 - Allowed for secure sounds_web_server setting
|
# 201002-1537 - Allowed for secure sounds_web_server setting
|
||||||
|
# 230914-1528 - Added --no-check-certificate to the wget requests for audio store files
|
||||||
#
|
#
|
||||||
|
|
||||||
# constants
|
# constants
|
||||||
@@ -296,7 +297,7 @@ if ($DB)
|
|||||||
|
|
||||||
$audio_list_file = '/tmp/audio_store_list.txt';
|
$audio_list_file = '/tmp/audio_store_list.txt';
|
||||||
`rm -f $audio_list_file`;
|
`rm -f $audio_list_file`;
|
||||||
`$wgetbin -q --output-document=$audio_list_file $URL `;
|
`$wgetbin -q --no-check-certificate --output-document=$audio_list_file $URL `;
|
||||||
|
|
||||||
open(list, "$audio_list_file") || die "can't open $audio_list_file: $!\n";
|
open(list, "$audio_list_file") || die "can't open $audio_list_file: $!\n";
|
||||||
@list = <list>;
|
@list = <list>;
|
||||||
@@ -339,7 +340,7 @@ while ($i <= $#list)
|
|||||||
|
|
||||||
if ( ($found_file < 1) || ($force_download > 0) )
|
if ( ($found_file < 1) || ($force_download > 0) )
|
||||||
{
|
{
|
||||||
`$wgetbin -q --output-document=$PATHsounds/$filename $sounds_web_server_URL_prefix/$web_prefix$sounds_web_directory/$filename`;
|
`$wgetbin -q --no-check-certificate --output-document=$PATHsounds/$filename $sounds_web_server_URL_prefix/$web_prefix$sounds_web_directory/$filename`;
|
||||||
$event_string = "DOWNLOADING: $filename $filesize";
|
$event_string = "DOWNLOADING: $filename $filesize";
|
||||||
if ($DB > 0) {print " $event_string\n";}
|
if ($DB > 0) {print " $event_string\n";}
|
||||||
&event_logger;
|
&event_logger;
|
||||||
@@ -360,7 +361,7 @@ $total_files = $i;
|
|||||||
|
|
||||||
|
|
||||||
`rm -f $audio_list_file`;
|
`rm -f $audio_list_file`;
|
||||||
`$wgetbin -q --output-document=$audio_list_file $URL `;
|
`$wgetbin -q --no-check-certificate --output-document=$audio_list_file $URL `;
|
||||||
|
|
||||||
open(list, "$audio_list_file") || die "can't open $audio_list_file: $!\n";
|
open(list, "$audio_list_file") || die "can't open $audio_list_file: $!\n";
|
||||||
@list = <list>;
|
@list = <list>;
|
||||||
|
|||||||
Reference in New Issue
Block a user