mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Build the logrotate script according to paths
(Closes issue #13147) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@133400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
Makefile
4
Makefile
@@ -762,7 +762,9 @@ install-logrotate:
|
||||
if [ ! -d $(ASTETCDIR)/../logrotate.d ]; then \
|
||||
mkdir $(ASTETCDIR)/../logrotate.d ; \
|
||||
fi
|
||||
install -m 0644 contrib/scripts/asterisk.logrotate $(ASTETCDIR)/../logrotate.d/asterisk
|
||||
sed 's#__LOGDIR__#$(ASTLOGDIR)#g' < contrib/scripts/asterisk.logrotate | sed 's#__SBINDIR__#$(ASTSBINDIR)#g' > contrib/scripts/asterisk.logrotate.tmp
|
||||
install -m 0644 contrib/scripts/asterisk.logrotate.tmp $(ASTETCDIR)/../logrotate.d/asterisk
|
||||
rm -f contrib/scripts/asterisk.logrotate.tmp
|
||||
|
||||
config:
|
||||
@if [ "${OSARCH}" = "linux-gnu" ]; then \
|
||||
|
Reference in New Issue
Block a user