Update of /cvsroot/hcoop/misc/scripts In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv15323
Modified Files: create-user Log Message: * Commit changes to the create-user script from last month * Modify database directories creation routine such that it allows users to read the base dir (.../databases/$PATHBITS), but not the mysql/pgsql subdirectories. This change allows them to retrieve their volume quota info while preserving our policy of not letting user browse their actual database directories. Index: create-user =================================================================== RCS file: /cvsroot/hcoop/misc/scripts/create-user,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** create-user 12 Dec 2007 17:25:17 -0000 1.40 --- create-user 4 Apr 2009 13:08:39 -0000 1.41 *************** *** 176,182 **** # public_html ! mkdir -p $HOMEPATH/public_html ! chown $USER:nogroup $HOMEPATH/public_html ! fs sa $HOMEPATH/public_html system:anyuser rl # .procmail.d --- 176,184 ---- # public_html ! test -e $HOMEPATH/public_html || \ ! (mkdir -p $HOMEPATH/public_html; \ ! chown $USER:nogroup $HOMEPATH/public_html; \ ! fs sa $HOMEPATH/public_html system:anyuser none; \ ! fs sa $HOMEPATH/public_html $USER.daemon rl) # .procmail.d *************** *** 215,219 **** echo -e "This email account is provided as a service for HCoop members." \ "\n\nTo learn how to use it, please visit the page" \ ! "\n<http://wiki2.hcoop.net/MemberManual/Email> on our website."| \ mail -s "Welcome to your HCoop email store" \ -e -a "From: postmas...@hcoop.net" \ --- 217,221 ---- echo -e "This email account is provided as a service for HCoop members." \ "\n\nTo learn how to use it, please visit the page" \ ! "\n<http://wiki.hcoop.net/MemberManual/Email> on our website."| \ mail -s "Welcome to your HCoop email store" \ -e -a "From: postmas...@hcoop.net" \ *************** *** 242,249 **** vos create -server afs -partition a -name db.$USER -maxquota 400000 fs mkmount -dir /afs/.hcoop.net/common/.databases/$PATHBITS -vol db.$USER -rw - vos release common.databases fs sa -dir $DBPATH -acl system:postgres l fs sa -dir $DBPATH -acl system:mysql l fs sa -dir $DBPATH -acl system:backup rl fi --- 244,251 ---- vos create -server afs -partition a -name db.$USER -maxquota 400000 fs mkmount -dir /afs/.hcoop.net/common/.databases/$PATHBITS -vol db.$USER -rw fs sa -dir $DBPATH -acl system:postgres l fs sa -dir $DBPATH -acl system:mysql l fs sa -dir $DBPATH -acl system:backup rl + fs sa -dir $DBPATH -acl $USER rl fi *************** *** 253,256 **** --- 255,259 ---- chown postgres:postgres $PGDIR fs sa -dir $PGDIR -acl system:postgres write + fs sa -dir $PGDIR -acl $USER none sudo -u postgres psql -c "CREATE TABLESPACE user_$USER OWNER postgres LOCATION '$PGDIR'" template1 *************** *** 261,265 **** --- 264,270 ---- chown mysql:mysql $MYSQLDIR fs sa -dir $MYSQLDIR -acl system:mysql write + fs sa -dir $MYSQLDIR -acl $USER none + vos release common.databases # ------------------------------------------------------------------------------ _______________________________________________ hcoop-cvs mailing list hcoop-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hcoop-cvs