refs #347 adds dependencies to ogboot installer for ipxe-study branch

pull/1/head
Luis Gerardo Romero Garcia 2024-05-13 11:03:46 +02:00
parent 7fa8a60421
commit b8449bf0a7
1 changed files with 78 additions and 0 deletions

View File

@ -28,6 +28,83 @@ function downloadCode()
return 0
}
function checkDependencies() {
echoAndLog "Checking dependencies..."
# Lista de dependencias
local DEPENDENCIES=(
php
php-cli
php-fpm
php-json
php-pdo
php-mysql
php-zip
php-gd
php-mbstring
php-curl
php-xml
php-pear
php-bcmath
composer
unzip
apache2
libapache2-mod-php
subversion
php-ldap
isc-dhcp-server
bittorrent
tftp-hpa
tftpd-hpa
xinetd
build-essential
g++-multilib
wget
curl
graphviz
bittornado
ctorrent
samba
rsync
netpipes
debootstrap
schroot
squashfs-tools
btrfs-tools
procps
arp-scan
realpath
gettext
moreutils
jq
wakeonlan
udpcast
libev-dev
libjansson-dev
libssl-dev
shim-signed
grub-efi-amd64-signed
gawk
libdbi-dev
libdbi1
automake
liblz4-tool
)
# Comprobar cada dependencia
for dep in "${DEPENDENCIES[@]}"; do
if ! dpkg -s "$dep" >/dev/null 2>&1; then
echoAndLog "$dep is not installed. Installing..."
sudo apt-get install -y "$dep"
else
echoAndLog "$dep is already installed."
fi
done
echoAndLog "Dependencies checked."
}
function add_tftpboot_files() {
# Navegar al directorio ogboot
cd ogboot
@ -133,6 +210,7 @@ mount_NFS() {
}
checkDependencies
downloadCode $GIT_REPO
if [ $? -ne 0 ]; then