Skip to content

Commit da38829

Browse files
Update asterisk-install.sh
1 parent fb12138 commit da38829

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/asterisk-install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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

78
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
89
color
@@ -24,7 +25,7 @@ $STD apt-get install -y \
2425
msg_ok "Installed Dependencies"
2526

2627
msg_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)
2829
temp_file=$(mktemp)
2930
curl -fsSL "https://downloads.asterisk.org/pub/telephony/asterisk/${RELEASE}" -o "$temp_file"
3031
mkdir -p /opt/asterisk
@@ -49,7 +50,7 @@ motd_ssh
4950
customize
5051

5152
msg_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"
5556
msg_ok "Cleaned"

0 commit comments

Comments
 (0)