.  $GRIMOIRE/FUNCTIONS                                                                                           &&
config_query_string  DRUPAL_INSTALL_PATH                                                                         \
                     "What path do you wish to use for installation (the spell name will be added at the end)?"  \
                     "usr/share/www"                                                                             &&

config_query_list  DRUPAL_DATABASE                                                                               \
                   "Which database would you like to use?"                                                       \
                   mysql                                                                                         \
                   postgresql                                                                                    &&

message  "${MESSAGE_COLOR}The MySQL daemon needs to be running to create the database${DEFAULT_COLOR}"           &&
config_query  DRUPAL_CREATEDB  "Create drupal database?"  n                                                      &&

if  [  "$DRUPAL_CREATEDB"  ==  "y"  ];  then
  if  [  "${DRUPAL_DATABASE}"  ==  "mysql"];  then
    peristent_add  DRUPAL_MYSQL  &&
    DRUPAL_MYSQL="y"
    persistent_add  DRUPAL_PGSQL  &&
    DRUPAL_PGSQL="n"
  else
    peristent_add  DRUPAL_MYSQL  &&
    DRUPAL_MYSQL="n"
    persistent_add  DRUPAL_PGSQL  &&
    DRUPAL_PGSQL="y"
  fi
fi
