refs #347 adds dependencies to ogboot installer for ipxe-study branch
parent
7fa8a60421
commit
b8449bf0a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue