Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-install.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-install.sql,v
diff -u -r1.19 -r1.20
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-install.sql	17 Feb 2003 15:32:53 -0000	1.19
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-install.sql	18 Feb 2003 20:54:32 -0000	1.20
@@ -27,8 +27,31 @@
 	       );
 
 
-  PERFORM apm_package__enable (main_site_id); 
+  perform apm_package__enable (main_site_id); 
 
+  insert into application_groups
+    (group_id, package_id)
+  values
+    (-2, main_site_id);
+
+  update acs_objects
+  set object_type = ''application_group''
+  where object_id = -2;
+
+  perform rel_segment__new(
+                   null,
+                   ''rel_segment'',
+                   now(),
+                   null,
+                   null,
+                   null,
+                   null,
+                   ''Main Site Members'',
+                   -2,
+                   ''membership_rel'',
+                   null
+                 );
+
   node_id := site_node__new (
           null,
           null,          
@@ -40,7 +63,7 @@
           null
   );
 
-  PERFORM acs_permission__grant_permission (
+  perform acs_permission__grant_permission (
         main_site_id,
         acs__magic_object_id(''the_public''),
         ''read''
@@ -53,5 +76,3 @@
 select inline_0 ();
 
 drop function inline_0 ();
-
--- show errors
