]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use different name for connection and database
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Jun 2009 18:22:54 +0000 (11:22 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Jun 2009 18:22:54 +0000 (11:22 -0700)
scripts/setup.cfg.sample
scripts/setup_status_network.sh

index ef33cd63274f0df0db7879f9f2ce1f13d1ceaa57..8d03b06f5e8db8c13e00f8ee888195cc32fe3fe6 100644 (file)
@@ -1,8 +1,7 @@
 # CONFIGURATION FILE for setup_status_network.sh
 
-# Base database name; full name will include nickname
-
-export DBHOST=masterdb.example.net
+export DBHOST=localhost
+export DBHOSTNAME=masterdb.example.net
 export DBBASE=_example_net
 export USERBASE=_example_net
 export ADMIN=root
index 0261a7f559c2b8e236b687baeb6774d2c4cb62e4..17440640e429d23e9af469ce6f8bd89b5b9bd6cc 100755 (executable)
@@ -22,7 +22,7 @@ mysql -h $DBHOST -u $ADMIN --password=$ADMINPASS $SITEDB << ENDOFCOMMANDS
 GRANT INSERT,SELECT,UPDATE,DELETE ON $database.* TO '$username'@'localhost' IDENTIFIED BY '$password';
 GRANT INSERT,SELECT,UPDATE,DELETE ON $database.* TO '$username'@'%' IDENTIFIED BY '$password';
 INSERT INTO status_network (nickname, dbhost, dbuser, dbpass, dbname, sitename, created)
-VALUES ('$nickname', '$DBHOST', '$username', '$password', '$database', '$sitename', now());
+VALUES ('$nickname', '$DBHOSTNAME', '$username', '$password', '$database', '$sitename', now());
 
 ENDOFCOMMANDS