Update parameters for ogrepository
parent
033ecb17e7
commit
b7c3523b10
|
@ -171,12 +171,13 @@ do
|
||||||
git_checkout_release "$OGREPOSITORY_REPO" "$component_dir/repo" "$OGCORE_BRANCH"
|
git_checkout_release "$OGREPOSITORY_REPO" "$component_dir/repo" "$OGCORE_BRANCH"
|
||||||
cp $CONFIGS_DIR/$config_file $component_dir/installer/config.json
|
cp $CONFIGS_DIR/$config_file $component_dir/installer/config.json
|
||||||
REPO_IP=$(jq -r '.ogrepository_ip' $component_dir/installer/config.json)
|
REPO_IP=$(jq -r '.ogrepository_ip' $component_dir/installer/config.json)
|
||||||
|
CORE_IP=$(jq -r '.ogcore_ip' $component_dir/installer/config.json)
|
||||||
OGUSER=$(jq -r '.ogrepository_samba_user' $component_dir/installer/config.json)
|
OGUSER=$(jq -r '.ogrepository_samba_user' $component_dir/installer/config.json)
|
||||||
OGPASS=$(jq -r '.ogrepository_samba_pass' $component_dir/installer/config.json)
|
OGPASS=$(jq -r '.ogrepository_samba_pass' $component_dir/installer/config.json)
|
||||||
mkdir -p $component_dir/bin
|
mkdir -p $component_dir/bin
|
||||||
cp $CONFIGS_DIR/provision_ogrepository.sh $component_dir/bin/
|
cp $CONFIGS_DIR/provision_ogrepository.sh $component_dir/bin/
|
||||||
chmod 755 $component_dir/bin/provision_ogrepository.sh
|
chmod 755 $component_dir/bin/provision_ogrepository.sh
|
||||||
$component_dir/bin/provision_ogrepository.sh $REPO_IP $OGUSER $OGPASS $component_dir/repo
|
$component_dir/bin/provision_ogrepository.sh $REPO_IP $CORE_IP $OGUSER $OGPASS $component_dir/repo
|
||||||
echo - ogRepository >> /etc/issue
|
echo - ogRepository >> /etc/issue
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
|
@ -4,10 +4,11 @@ set -e
|
||||||
|
|
||||||
|
|
||||||
REPO_IP=${1:-"127.0.0.1"}
|
REPO_IP=${1:-"127.0.0.1"}
|
||||||
OGUSER=${2:-"opengnsys"}
|
CORE_IP=${2:-"127.0.0.1"}
|
||||||
OGPASS=${3:-"og"}
|
OGUSER=${3:-"opengnsys"}
|
||||||
|
OGPASS=${4:-"og"}
|
||||||
INSTALL_DIR=/opt/opengnsys/ogrepository
|
INSTALL_DIR=/opt/opengnsys/ogrepository
|
||||||
DOWNLOAD_DIR=${4:-"/tmp/ogrepository"}
|
DOWNLOAD_DIR=${5:-"/tmp/ogrepository"}
|
||||||
DEBIAN_FRONTEND=noninteractive
|
DEBIAN_FRONTEND=noninteractive
|
||||||
export DEBIAN_FRONTEND
|
export DEBIAN_FRONTEND
|
||||||
export GIT_SSL_NO_VERIFY
|
export GIT_SSL_NO_VERIFY
|
||||||
|
@ -75,6 +76,7 @@ install_files() {
|
||||||
chown -R $OGUSER:$OGUSER $INSTALL_DIR
|
chown -R $OGUSER:$OGUSER $INSTALL_DIR
|
||||||
chmod 755 $INSTALL_DIR/bin/*
|
chmod 755 $INSTALL_DIR/bin/*
|
||||||
echo IPlocal="$REPO_IP" > $INSTALL_DIR/etc/ogAdmRepo.cfg
|
echo IPlocal="$REPO_IP" > $INSTALL_DIR/etc/ogAdmRepo.cfg
|
||||||
|
echo IPcore="$CORE_IP" >> $INSTALL_DIR/etc/ogAdmRepo.cfg
|
||||||
sudo chown $OGUSER:$OGUSER $INSTALL_DIR/etc/ogAdmRepo.cfg
|
sudo chown $OGUSER:$OGUSER $INSTALL_DIR/etc/ogAdmRepo.cfg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue