new package
This commit is contained in:
13
vpn_node/scripts/env.sh
Normal file
13
vpn_node/scripts/env.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
apt-get update -qq
|
||||
apt-get install -y --no-install-recommends curl ca-certificates gnupg unzip wget
|
||||
|
||||
# Получаем последнюю версию автоматически
|
||||
NFPM_VERSION=$(curl -fsSL https://api.github.com/repos/goreleaser/nfpm/releases/latest \
|
||||
| grep '"tag_name"' | sed 's/.*"v\([^"]*\)".*/\1/')
|
||||
|
||||
curl -fsSL "https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz" \
|
||||
| tar -xz -C /usr/local/bin nfpm
|
||||
|
||||
echo "✓ nfpm $(nfpm --version)"
|
||||
Reference in New Issue
Block a user