Bug fixed in install-openmano.sh to run config scripts from the appropriate base folder

Change-Id: Ie8adc512cb0a0f32da383c12ea6a48cdf191814b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/scripts/install-openmano.sh b/scripts/install-openmano.sh
index 9a2e725..4a2ff72 100755
--- a/scripts/install-openmano.sh
+++ b/scripts/install-openmano.sh
@@ -289,12 +289,19 @@
 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