mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-25 18:16:17 +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.
|
# This function sets the APP-Name into an ASCII Header in Slant, figlet needed on proxmox main node.
|
||||||
header_info() {
|
header_info() {
|
||||||
|
if [ -f /etc/debian_version ]; then
|
||||||
|
# Debian/Ubuntu
|
||||||
apt-get install -y figlet &> /dev/null
|
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")
|
ascii_art=$(figlet -f slant "$APP")
|
||||||
clear
|
clear
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user