From 6409b4b938a334e3ee8abbd777868b4006057a1f Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 19 Sep 2016 22:54:40 +0200 Subject: [PATCH] Bug fixed in install-openmano.sh to run config scripts from the appropriate base folder Change-Id: Ie8adc512cb0a0f32da383c12ea6a48cdf191814b Signed-off-by: garciadeblas --- scripts/install-openmano.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 -- 2.25.1