From 82f9a71a28632595e01517be80c4bfa1255657e6 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Mon, 30 Mar 2015 15:37:17 +0100 Subject: No need to su to the site user, cron should already run as them. --- script/compact-xapian-database | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'script/compact-xapian-database') diff --git a/script/compact-xapian-database b/script/compact-xapian-database index 7d32d7a15..0caff6394 100755 --- a/script/compact-xapian-database +++ b/script/compact-xapian-database @@ -15,11 +15,8 @@ if [ -x /usr/bin/xapian-compact ]; echo >&2 "Didn't compact Xapian database because there was an existing database at $XAPIAN_DB_DIR/$RAILS_ENV.new" exit 1 else - OWNER=$(stat -c %U "$XAPIAN_DB_DIR/$RAILS_ENV") export XAPIAN_DB_DIR RAILS_ENV - su "$OWNER" <