refs #169 add function to add dependency repository for kea in case ubuntu is 18.04
parent
2f12fc40fe
commit
33b4eaadd6
|
@ -349,7 +349,22 @@ function install_swagger_ui {
|
|||
echo "Swagger UI instalado en $destination_path."
|
||||
}
|
||||
|
||||
create_kea_source_list() {
|
||||
# Comprobar si el sistema operativo es Ubuntu 18.04
|
||||
if [[ "$(lsb_release -rs)" == "18.04" ]]; then
|
||||
echo "Creating isc-kea-2-0.list file..."
|
||||
|
||||
# Crear el archivo isc-kea-2-0.list
|
||||
echo "
|
||||
deb [signed-by=/usr/share/keyrings/isc-kea-2-0-archive-keyring.gpg] https://dl.cloudsmith.io/public/isc/kea-2-0/deb/ubuntu jammy main
|
||||
|
||||
deb-src [signed-by=/usr/share/keyrings/isc-kea-2-0-archive-keyring.gpg] https://dl.cloudsmith.io/public/isc/kea-2-0/deb/ubuntu jammy main" | sudo tee /etc/apt/sources.list.d/isc-kea-2-0.list
|
||||
|
||||
echo "File created successfully."
|
||||
else
|
||||
echo "This script is only for Ubuntu 18.04."
|
||||
fi
|
||||
}
|
||||
|
||||
function installWebConsoleApacheConf()
|
||||
{
|
||||
|
@ -452,7 +467,7 @@ echoAndLog "OpenGnsys installation begins at $(date)"
|
|||
|
||||
mkdir -p $WORKDIR
|
||||
pushd $WORKDIR
|
||||
|
||||
create_kea_source_list
|
||||
checkDependencies
|
||||
install_kea
|
||||
# Si es necesario, descarga el repositorio de código en directorio temporal
|
||||
|
|
Loading…
Reference in New Issue