From: garciadeblas Date: Mon, 19 Sep 2016 20:54:40 +0000 (+0200) Subject: Bug fixed in install-openmano.sh to run config scripts from the appropriate base... X-Git-Tag: v1.0.0~34 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=commitdiff_plain;h=6409b4b938a334e3ee8abbd777868b4006057a1f Bug fixed in install-openmano.sh to run config scripts from the appropriate base folder Change-Id: Ie8adc512cb0a0f32da383c12ea6a48cdf191814b Signed-off-by: garciadeblas --- diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh index 9a2e725b..4a2ff725 100755 --- a/scripts/install-openmano.sh +++ b/scripts/install-openmano.sh @@ -289,12 +289,19 @@ else fi +#Next operations require knowing OPENMANO_BASEFOLDER +HERE=$(realpath $(dirname $0)) +if [[ -z $NOCLONE ]]; then + OPENMANO_BASEFOLDER="${HERE}/openmano" +else + OPENMANO_BASEFOLDER=$(dirname $HERE) +fi + + echo ' ################################################################# ##### INIT DATABASE ##### #################################################################' -HERE=$(realpath $(dirname $0)) -OPENMANO_BASEFOLDER=$(dirname $HERE) su $SUDO_USER -c "${OPENMANO_BASEFOLDER}"'/database_utils/init_mano_db.sh -u mano -p manopw -d mano_db' || ! echo "Failed while initializing database" || exit 1