Various improvements.
authormwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sat, 4 Apr 2009 19:23:50 +0000 (15:23 -0400)
committermwolson_admin <mwolson_admin@deleuze.hcoop.net>
Sat, 4 Apr 2009 19:23:50 +0000 (15:23 -0400)
apache-sync-logs
create-user

index f5ee0ad..95b66ef 100755 (executable)
@@ -66,6 +66,9 @@ for A in $(find $LOCAL_LOG_DIR -mindepth 3 -maxdepth 3 -print); do
 #        ERROR=yes
 # We will assume that people know what they are doing when they
 # delete their ~/.logs/apache directory ....
+        if test "$VERBOSE" = "true"; then
+               echo "Skipping $USER (no $LOG_DEST directory)"
+        fi
         continue
     else
         rm -fr $TMP_DEST
index 24fe5df..489e60a 100755 (executable)
@@ -246,6 +246,7 @@ if ! vos examine db.$USER >/dev/null 2>/dev/null; then
   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
 
 # Create postgres user and tablespace placeholder within volume
@@ -253,6 +254,7 @@ if ! test -d $PGDIR; then
   mkdir -p $PGDIR
   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
 fi
@@ -261,6 +263,7 @@ fi
 mkdir -p $MYSQLDIR
 chown mysql:mysql $MYSQLDIR
 fs sa -dir $MYSQLDIR -acl system:mysql  write
+fs sa -dir $MYSQLDIR -acl $USER         none
 
 vos release common.databases