mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- fix bug where different packages would build from the same directory
causing centos things to leak into ubuntu packages (Reported by Kristian Glass)
This commit is contained in:
parent
cd102cd39d
commit
dae45ce8fd
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,7 @@ release=$2
|
|||
|
||||
echo "Building package for $os $release"
|
||||
|
||||
destdir=build/
|
||||
destdir=build/$(echo "$os" | tr ' ' '_')
|
||||
prefix=/opt/logstash
|
||||
|
||||
if [ "$destdir/$prefix" != "/" -a -d "$destdir/$prefix" ] ; then
|
||||
|
@ -52,6 +52,7 @@ case $os@$release in
|
|||
mkdir -p $destdir/etc/logrotate.d
|
||||
mkdir -p $destdir/etc/init
|
||||
mkdir -p $destdir/var/log/logstash
|
||||
mkdir -p $destdir/etc/sysconfig
|
||||
touch $destdir/etc/sysconfig/logstash
|
||||
install -m644 logrotate.conf $destdir/etc/logrotate.d/
|
||||
install -m755 logstash.upstart.ubuntu $destdir/etc/init/logstash.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue