aboutsummaryrefslogtreecommitdiffstats
path: root/script/compact-xapian-database
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-02 09:52:58 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-02 09:55:54 +0100
commit8e0ad9b6eb776c18496ebcfda0f7b74121afb4fd (patch)
tree85a8c143a0a0a4406828d31eb83cfaf361276e52 /script/compact-xapian-database
parentca95c1fd32c9d83091488a6d7a2e66b2e3809a16 (diff)
Use full path as cron does not necessarily have access to $PATH.
The alternative would be to set a $PATH environment variable in the cron file.
Diffstat (limited to 'script/compact-xapian-database')
-rwxr-xr-xscript/compact-xapian-database2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/compact-xapian-database b/script/compact-xapian-database
index 0caff6394..cb2d578e6 100755
--- a/script/compact-xapian-database
+++ b/script/compact-xapian-database
@@ -20,7 +20,7 @@ if [ -x /usr/bin/xapian-compact ];
mv "$XAPIAN_DB_DIR/$RAILS_ENV" "$XAPIAN_DB_DIR/$RAILS_ENV.tmp"
mv "$XAPIAN_DB_DIR/$RAILS_ENV.new" "$XAPIAN_DB_DIR/$RAILS_ENV"
rm -rf "$XAPIAN_DB_DIR/$RAILS_ENV.tmp"
- commonlib/bin/output-on-error service "$DAEMON_NAME" restart
+ commonlib/bin/output-on-error /usr/sbin/service "$DAEMON_NAME" restart
fi
else
echo >&2 "Could not find xapian-compact script; have you installed xapian-tools?"