Standardize download commands across all build scripts: - HashiCorp packages: wget -O → curl -o - VictoriaMetrics packages: wget -O → curl -o - Other packages: wget -O → curl -o, wget → curl -O - Update dependency lists to use curl instead of wget This change provides consistency across all packages and uses a single download tool.
10 lines
376 B
Bash
Executable File
10 lines
376 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# Download and extract unrar (with version formatting)
|
|
export DOWNLOAD_VERSION=$(echo $PACKAGE_VERSION | sed s/\\.//)
|
|
curl -o /app/rarlinux.tar.gz https://www.rarlab.com/rar/rarlinux-x64-${DOWNLOAD_VERSION}.tar.gz
|
|
tar xf /app/rarlinux.tar.gz
|
|
mv /app/rar/unrar /app/
|
|
|
|
# Build the RPM
|
|
nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm |