From 233cf82f1dbb605ea7e935dfee400ac82e5cb48f Mon Sep 17 00:00:00 2001 From: lgromero Date: Wed, 13 Nov 2024 18:58:53 +0100 Subject: [PATCH] refs #1134 Adds help script to new ogdhcp installation --- installer/ogdhcp_installer_init.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 installer/ogdhcp_installer_init.sh diff --git a/installer/ogdhcp_installer_init.sh b/installer/ogdhcp_installer_init.sh new file mode 100644 index 0000000..36fa748 --- /dev/null +++ b/installer/ogdhcp_installer_init.sh @@ -0,0 +1,25 @@ +#!/bin/bash +set -x +URL_REPO="https://ognproject.evlt.uma.es/gitea/opengnsys/ogdhcp.git" +BRANCH=${OGDHCP_BRANCH:-"main"} +DOWNLOADDIR=${OGDHCP_DOWNLOADDIR:-"/tmp/ogdhcp"} +apt install -y git vim +git config --global http.sslVerify false +git clone -b $BRANCH $URL_REPO $DOWNLOADDIR +cd $DOWNLOADDIR/installer + +ogBoot_ServerIP=${1:-"172.17.8.82"} +ogDhcp_ServerIP=${2:-"172.17.8.37"} +ogDhcp_Dir=${3:-"/opt/opengnsys/ogdhcp"} + + +cat > config_ogdhcp.json <