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
-8
View File
@@ -5,14 +5,6 @@ set -uo pipefail
PREFIX=/opt/oai-enb
CONFIGFILE=$PREFIX/etc/enb.conf
if [[ -v USE_VOLUMED_CONF ]]; then
cp $PREFIX/etc/mounted.conf $PREFIX/etc/enb.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