Remove USE_VOLUMED_CONF: all configuration files have to be mounted

This commit is contained in:
Dhanuja Elizabeth Thomas
2023-06-02 15:08:24 +02:00
committed by Robert Schmidt
parent fd4c9227ff
commit 0f0ce9fb02
45 changed files with 58 additions and 188 deletions
-9
View File
@@ -5,15 +5,6 @@ set -uo pipefail
PREFIX=/opt/oai-lte-ru
CONFIGFILE=$PREFIX/etc/rru.conf
# Based another env var, pick one template to use
if [[ -v USE_VOLUMED_CONF ]]; then
cp $PREFIX/etc/rru.fdd.conf $PREFIX/etc/rru.conf
else
echo "ERROR: No configuration file provided."
echo "Please set USE_VOLUMED_CONF and mount a configuration file at $PREFIX/etc/mounted.conf"
exit 1
fi
if [ ! -f $CONFIGFILE ]; then
echo "No configuration file found: please mount at $CONFIGFILE"
exit 255