mirror of
https://github.com/luzifer-docker/znc.git
synced 2024-11-08 15:10:06 +00:00
24 lines
634 B
Bash
Executable file
24 lines
634 B
Bash
Executable file
#!/bin/bash
|
|
set -euxo pipefail
|
|
|
|
makepkgs=(
|
|
curl
|
|
)
|
|
|
|
runpkgs=(
|
|
znc
|
|
)
|
|
|
|
# Install required package
|
|
apk --no-cache add "${makepkgs[@]}" "${runpkgs[@]}"
|
|
|
|
# Add gosu for privilege de-escalation
|
|
curl -sSfLo /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-amd64"
|
|
chmod +x /usr/local/bin/gosu
|
|
|
|
# Add korvike for template processing
|
|
curl -sSfL "https://github.com/Luzifer/korvike/releases/download/v${KORVIKE_VERSION}/korvike_linux_amd64.tar.gz" | tar -xz -C /usr/local/bin
|
|
mv /usr/local/bin/korvike_linux_amd64 /usr/local/bin/korvike
|
|
|
|
# Remove make-only packages
|
|
apk --no-cache del "${makepkgs[@]}"
|