20 lines
639 B
Bash
20 lines
639 B
Bash
#!/usr/bin/bash
|
|
|
|
# Paso 1: Seleccionar los componentes
|
|
# Los componentes a instalar se encuentran en el directorio /tmp/opengnsys-installer-configs
|
|
|
|
COMPONENTS="ogCore ogGui ogDhcp ogBoot"
|
|
CONFIGS_DIR=/tmp/opengnsys-configs
|
|
|
|
for component in $COMPONENTS
|
|
do
|
|
config_file="config_${component}.json"
|
|
if [ -f $CONFIGS_DIR/$config_file ]; then
|
|
echo "Componente $component seleccionado, instalando configuración..."
|
|
mkdir -p /opt/opengnsys/$component
|
|
mkdir -p /opt/opengnsys/$component/installer
|
|
cp $CONFIGS_DIR/$config_file /opt/opengnsys/$component/installer/config.json
|
|
continue
|
|
fi
|
|
done
|