Bug fixed in install-openmano.sh to run config scripts from the appropriate base...
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 19 Sep 2016 20:54:40 +0000 (22:54 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 19 Sep 2016 20:54:40 +0000 (22:54 +0200)
Change-Id: Ie8adc512cb0a0f32da383c12ea6a48cdf191814b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
scripts/install-openmano.sh

index 9a2e725..4a2ff72 100755 (executable)
@@ -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