mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
fix figlet for alpine (#869)
This commit is contained in:
parent
a46e66fd9a
commit
73d5794086
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user