~george-edison55/charms/oneiric/thinkup/update-to-1-0-2

« back to all changes in this revision

Viewing changes to hooks/db-relation-changed

  • Committer: Nathan Osman
  • Date: 2011-11-23 01:53:44 UTC
  • Revision ID: admin@quickmediasolutions.com-20111123015344-ze3egzsiqyevfhug
Removed shell metacharacters from SQL query.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
# Execute the SQL that creates the tables
34
34
juju-log "Creating database tables and opening registration"
35
35
cat > /tmp/enable_open_registration.sql <<EOD
36
 
INSERT INTO `$DATABASE`.`tu_options` (`namespace`, `option_name`, `option_value`, `last_updated`, `created`) VALUES ('application_options', 'is_registration_open', 'true', NOW(), NOW());
 
36
INSERT INTO $DATABASE.tu_options (namespace, option_name, option_value, last_updated, created) VALUES ('application_options', 'is_registration_open', 'true', NOW(), NOW());
37
37
EOD
38
38
cat /var/www/install/sql/build-db_mysql.sql /tmp/enable_open_registration.sql | mysql -u$DB_USER -p$DB_PASS -h$DB_HOST $DATABASE