fix figlet for alpine (#869)

This commit is contained in:
CanbiZ 2024-12-17 13:18:39 +01:00 committed by GitHub
parent a46e66fd9a
commit 73d5794086
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -158,7 +158,17 @@ arch_check() {
# This function sets the APP-Name into an ASCII Header in Slant, figlet needed on proxmox main node.
header_info() {
apt-get install -y figlet &> /dev/null
if [ -f /etc/debian_version ]; then
# Debian/Ubuntu
apt-get install -y figlet &> /dev/null
elif [ -f /etc/alpine-release ]; then
# Alpine Linux
apk add --no-cache figlet &> /dev/null
else
echo "Unsupported OS"
return 1
fi
ascii_art=$(figlet -f slant "$APP")
clear
cat <<EOF