aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-06-27 19:00:25 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-06-27 19:00:25 +0000
commitc40ae4b578f905df8aa5656b7763956e19165094 (patch)
tree642d9d52356afa05e5c00909eeead4d343f2062a
parentb49bba1cd06bb42b67137878e558d5516f1bffe1 (diff)
downloadpaludis-c40ae4b578f905df8aa5656b7763956e19165094.tar.gz
paludis-c40ae4b578f905df8aa5656b7763956e19165094.tar.xz
Allow the default paludis.log directory to be overridden with a PALUDIS_LOG_DIRECTORY environment variable.
-rwxr-xr-xhooks/log.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/log.bash b/hooks/log.bash
index f39976b..d76ea44 100755
--- a/hooks/log.bash
+++ b/hooks/log.bash
@@ -16,7 +16,7 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA
-mkdir -p "${ROOT}/var/log"
+mkdir -p "${PALUDIS_LOG_DIRECTORY:-${ROOT}/var/log}"
if [[ -n ${X_OF_Y} ]] ; then
COUNTS=" (${X_OF_Y})"
@@ -103,6 +103,6 @@ fi
*)
echo "unknown hook ${HOOK}"
esac
-) >> ${ROOT}/var/log/paludis.log
+) >> "${PALUDIS_LOG_DIRECTORY:-${ROOT}/var/log}/paludis.log"
true