[cvs] [Wiki] changed: ApplyGlobal

Wiki Guest wiki at wiki.horde.org
Fri Jun 17 23:57:40 PDT 2005


guest [203.145.159.37]  Fri, 17 Jun 2005 23:57:40 -0700

Modified page: http://wiki.horde.org/ApplyGlobal
New Revision:  1.2
Change log:  cosmetic

@@ -3,9 +3,9 @@
 
-1. Create a user account, name it 'publicprofile' and set up the preferences for that account
+1. Create an user account, name it 'publicprofile' and set up the preferences for that account
 the way you want all the other accounts to be set up.
 
-2. Create a plain text file containing the list of all the users and
+2. Create a plain text file containing the list of all the users to which new preferences are to be applied and
 name it 'users.txt'
 
  e.g.
 #user.txt contains list of all the user whose preferences are to be changed as per the default profile
@@ -14,9 +14,9 @@
 user3
 
 3. Copy the script below and save it as 'defaultprofile.sh'
 
-#start script
+<code type="bash">
 #!/usr/bin/ksh
 
 NEW_USERS="/data/users.txt"
 cat ${NEW_USERS} | 
@@ -29,19 +29,18 @@
 echo "DELETE FROM horde_prefs where pref_uid = '$USER';"
 echo "INSERT INTO horde_prefs SELECT * FROM default_prefs;"
 echo "COMMIT;"
 done
-
-#end of script
+</code>
 
 4. run the following command at the shell prompt
 
-sh defaultprofile.sh > applypref.sql
+{{sh defaultprofile.sh > applypref.sql}}
 
 5. after creating 'applypref.sql' run the following commands at the shell prompt
 
-su horde
-psql -d horde < applypref.sql
+{{su horde}}
+{{psql -d horde < applypref.sql}}
 
 That will copy all the preferences from default user to the users specified in the list.
 
 Jigish


More information about the cvs mailing list