File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33# Copyright (c) 2021-2025 community-scripts ORG
44# Author: michelroegl-brunner
55# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+ # Source: https://asterisk.org
67
78source /dev/stdin <<< " $FUNCTIONS_FILE_PATH"
89color
@@ -24,7 +25,7 @@ $STD apt-get install -y \
2425msg_ok " Installed Dependencies"
2526
2627msg_info " Downloading Asterisk"
27- RELEASE=$( curl -s https://downloads.asterisk.org/pub/telephony/asterisk/ | grep -o ' asterisk-[0-9]\+-current\.tar\.gz' | sort -V | tail -n1)
28+ RELEASE=$( curl -fsSL https://downloads.asterisk.org/pub/telephony/asterisk/ | grep -o ' asterisk-[0-9]\+-current\.tar\.gz' | sort -V | tail -n1)
2829temp_file=$( mktemp)
2930curl -fsSL " https://downloads.asterisk.org/pub/telephony/asterisk/${RELEASE} " -o " $temp_file "
3031mkdir -p /opt/asterisk
@@ -49,7 +50,7 @@ motd_ssh
4950customize
5051
5152msg_info " Cleaning up"
53+ $STD rm -f " $temp_file "
5254$STD apt-get -y autoremove
5355$STD apt-get -y autoclean
54- $STD rm -f " $temp_file "
5556msg_ok " Cleaned"
You can’t perform that action at this time.
0 commit comments