From: mwolson_admin Date: Sat, 4 Apr 2009 19:23:50 +0000 (-0400) Subject: Various improvements. X-Git-Url: https://git.hcoop.net/hcoop/scripts.git/commitdiff_plain/9c29302d8d798fef214dafcc4a34901ddcbc97b4 Various improvements. --- diff --git a/apache-sync-logs b/apache-sync-logs index f5ee0ad..95b66ef 100755 --- a/apache-sync-logs +++ b/apache-sync-logs @@ -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 diff --git a/create-user b/create-user index 24fe5df..489e60a 100755 --- a/create-user +++ b/create-user @@ -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