mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-11 03:15:09 +00:00
Patch Figlet Repo if missing (#1044)
* Patch Figlet Repo if missing * readd comment
This commit is contained in:
parent
1378e9a2e9
commit
6bae0d71ea
@ -161,6 +161,10 @@ arch_check() {
|
|||||||
header_info() {
|
header_info() {
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
# Debian/Ubuntu
|
# Debian/Ubuntu
|
||||||
|
if ! grep -q "^deb http://ftp.debian.org/debian bookworm main contrib" /etc/apt/sources.list; then
|
||||||
|
echo "deb http://ftp.debian.org/debian bookworm main contrib" >> /etc/apt/sources.list
|
||||||
|
apt-get update -y &> /dev/null
|
||||||
|
fi
|
||||||
apt-get install -y figlet &> /dev/null
|
apt-get install -y figlet &> /dev/null
|
||||||
elif [ -f /etc/alpine-release ]; then
|
elif [ -f /etc/alpine-release ]; then
|
||||||
# Alpine Linux
|
# Alpine Linux
|
||||||
|
Loading…
Reference in New Issue
Block a user