From 8ea85be59144390e08c5f721fa4424ebe86a3a48 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 14 Sep 2023 19:36:05 +0000 Subject: [PATCH] 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 --- agc_2-X/trunk/bin/ADMIN_audio_store_sync.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/agc_2-X/trunk/bin/ADMIN_audio_store_sync.pl b/agc_2-X/trunk/bin/ADMIN_audio_store_sync.pl index 1ac2c408..1969499e 100644 --- a/agc_2-X/trunk/bin/ADMIN_audio_store_sync.pl +++ b/agc_2-X/trunk/bin/ADMIN_audio_store_sync.pl @@ -6,7 +6,7 @@ # syncronizes audio between audio store and this server # # -# Copyright (C) 2020 Matt Florell LICENSE: AGPLv2 +# Copyright (C) 2023 Matt Florell LICENSE: AGPLv2 # # CHANGELOG # 90513-0458 - First Build @@ -20,6 +20,7 @@ # 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 # 201002-1537 - Allowed for secure sounds_web_server setting +# 230914-1528 - Added --no-check-certificate to the wget requests for audio store files # # constants @@ -296,7 +297,7 @@ if ($DB) $audio_list_file = '/tmp/audio_store_list.txt'; `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"; @list = ; @@ -339,7 +340,7 @@ while ($i <= $#list) 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"; if ($DB > 0) {print " $event_string\n";} &event_logger; @@ -360,7 +361,7 @@ $total_files = $i; `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"; @list = ;