[Lunar-commits] <moonbase> logrotate: A couple of quick fixes
Stefan Wold
ratler at lunar-linux.org
Sat Nov 7 12:25:05 CET 2009
commit a9269b0a7d56c6d3a498e1758bb6a2af1b29c1ed
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat Nov 7 12:25:05 2009 +0100
logrotate: A couple of quick fixes
---
utils/logrotate/BUILD | 2 +-
utils/logrotate/plugin.d/logrotate.plugin | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/logrotate/BUILD b/utils/logrotate/BUILD
index 1aae92e..0caae44 100644
--- a/utils/logrotate/BUILD
+++ b/utils/logrotate/BUILD
@@ -19,7 +19,7 @@
fi &&
if [ ! -e /etc/cron.daily/logrotate ]; then
- install -m 0644 examples/logrotate.cron /etc/cron.daily/logrotate
+ install -m 0755 examples/logrotate.cron /etc/cron.daily/logrotate
fi &&
gather_docs examples
diff --git a/utils/logrotate/plugin.d/logrotate.plugin b/utils/logrotate/plugin.d/logrotate.plugin
index bb9cffc..72cbbff 100644
--- a/utils/logrotate/plugin.d/logrotate.plugin
+++ b/utils/logrotate/plugin.d/logrotate.plugin
@@ -24,7 +24,7 @@ plugin_logrotate_post_build()
[ -d $LOGDPATH ] || mkdir -p $LOGDPATH
for FILE in $SPATH/*; do
- if [ ! -f $LOGDPATH/$FILE ]; then
+ if [ ! -f $LOGDPATH/$(basename $FILE) ]; then
/usr/bin/install -g 0 -o 0 -m 0644 $FILE $LOGDPATH/
fi
done
More information about the Lunar-commits
mailing list