+if [ -z "$NO_DB" ]; then
+echo '
+#################################################################
+##### INSTALL DATABASE SERVER #####
+#################################################################'
+
+ if [ -n "$QUIET_MODE" ]; then
+ DB_QUIET='-q'
+ fi
+ if [ -n "$FORCEDB" ]; then
+ DB_FORCE='--forcedb'
+ fi
+ ${OPENMANO_BASEFOLDER}/database_utils/install-db-server.sh -u $DBUSER $DBPASSWD_PARAM $DB_QUIET $DB_FORCE || exit 1
+echo '
+#################################################################
+##### CREATE AND INIT MANO_VIM DATABASE #####
+#################################################################'
+# Install mano_vim_db after setup
+ ${OPENMANO_BASEFOLDER}/openvim/database_utils/install-db-server.sh -U $DBUSER ${DBPASSWD_PARAM/p/P} -u mano -p manopw -d mano_vim_db || exit 1
+
+fi
+
+if [[ -n "$INSTALL_AS_A_SERVICE" ]]
+then
+echo '
+#################################################################
+##### CONFIGURE OPENMANO SERVICE #####
+#################################################################'
+
+ ${OPENMANO_BASEFOLDER}/scripts/install-openmano-service.sh -f ${OPENMANO_BASEFOLDER} `[[ -z "$NOCLONE" ]] && echo "-d"`
+# rm -rf ${OPENMANO_BASEFOLDER}
+# alias service-openmano="service openmano"
+# echo 'alias service-openmano="service openmano"' >> ${HOME}/.bashrc
+
+ echo
+ echo "Done! installed at /opt/openmano"
+ echo " Manage server with 'sudo service openmano start|stop|status|...' "