[Fusionforge-commits] r15711 - in trunk: . src/install

Roland Mas lolando at fusionforge.org
Sun Jun 10 18:47:41 CEST 2012


Author: lolando
Date: 2012-06-10 18:47:40 +0200 (Sun, 10 Jun 2012)
New Revision: 15711

Modified:
   trunk/
   trunk/src/install/install3
Log:
Stop trying to insert a row into deleted user_group table

Modified: trunk/src/install/install3
===================================================================
--- trunk/src/install/install3	2012-06-10 16:02:48 UTC (rev 15710)
+++ trunk/src/install/install3	2012-06-10 16:47:40 UTC (rev 15711)
@@ -50,7 +50,7 @@
 create_db_admin_user(){
 	gforge_db="$1"
 	admin_user="$2"
-	su - postgres -c "psql $gforge_db -c \"INSERT INTO users (user_name, realname, firstname, lastname, email, user_pw, unix_pw, status, theme_id) VALUES ('$admin_user', 'Forge Admin', 'Forge', 'Admin', 'root at localhost.localdomain', 'INVALID', 'INVALID', 'A', 1); INSERT INTO user_group (user_id, group_id, admin_flags, role_id) VALUES (currval('users_pk_seq'), 1, 'A',17); INSERT INTO pfo_user_role (user_id, role_id) VALUES (currval('users_pk_seq'), 3)\""
+	su - postgres -c "psql $gforge_db -c \"INSERT INTO users (user_name, realname, firstname, lastname, email, user_pw, unix_pw, status, theme_id) VALUES ('$admin_user', 'Forge Admin', 'Forge', 'Admin', 'root at localhost.localdomain', 'INVALID', 'INVALID', 'A', 1); INSERT INTO pfo_user_role (user_id, role_id) VALUES (currval('users_pk_seq'), 3)\""
 }
 
 find_psql_init(){




More information about the Fusionforge-commits mailing list