mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-04 06:50:15 +00:00
Update build.func
This commit is contained in:
parent
40cd3d0c71
commit
e52dab49f7
@ -156,7 +156,6 @@ arch_check() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function sets the APP-Name into an ASCII Header in Slant, figlet needed on proxmox main node.
|
|
||||||
header_info() {
|
header_info() {
|
||||||
if ! command -v figlet &> /dev/null; then
|
if ! command -v figlet &> /dev/null; then
|
||||||
if [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
if [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
@ -173,8 +172,15 @@ header_info() {
|
|||||||
temp_dir=$(mktemp -d)
|
temp_dir=$(mktemp -d)
|
||||||
curl -sL https://github.com/community-scripts/ProxmoxVE/raw/refs/heads/develop/misc/figlet.tar.xz -o "$temp_dir/figlet.tar.xz"
|
curl -sL https://github.com/community-scripts/ProxmoxVE/raw/refs/heads/develop/misc/figlet.tar.xz -o "$temp_dir/figlet.tar.xz"
|
||||||
tar -xf "$temp_dir/figlet.tar.xz" -C "$temp_dir"
|
tar -xf "$temp_dir/figlet.tar.xz" -C "$temp_dir"
|
||||||
|
|
||||||
|
# Überprüfen, ob die Datei bereits existiert
|
||||||
|
if [ -e /usr/local/bin/figlet ]; then
|
||||||
|
echo "Figlet ist bereits installiert, Überschreibung wird übersprungen."
|
||||||
|
else
|
||||||
mv "$temp_dir/figlet" /usr/local/bin/
|
mv "$temp_dir/figlet" /usr/local/bin/
|
||||||
chmod +x /usr/local/bin/figlet
|
chmod +x /usr/local/bin/figlet
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf "$temp_dir"
|
rm -rf "$temp_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user