Skip to content

Commit

Permalink
Make sed work on both Linux and OSX in newrelic package script.
Browse files Browse the repository at this point in the history
sed threw a 'bad flag in substitute command: f' when run. Added a -e
flag to fix this.
  • Loading branch information
chronick authored and iphoting committed Apr 7, 2013
1 parent 94d57d5 commit 5280700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/package_newrelic
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ pushd newrelic-php5-${NEWRELIC_VERSION}-linux
mkdir -p $installdir/{bin,etc} $installdir/var/{run,log} $installdir/var/log/newrelic
cp -f daemon/newrelic-daemon.x64 $installdir/bin/newrelic-daemon
cp -f scripts/newrelic.cfg.template $installdir/etc/newrelic.cfg
sed -i 's|var|app/local/var|g' $installdir/etc/newrelic.cfg
sed -i 's|#ssl=false|ssl=true|g' $installdir/etc/newrelic.cfg
sed -i -e 's|var|app/local/var|g' $installdir/etc/newrelic.cfg
sed -i -e 's|#ssl=false|ssl=true|g' $installdir/etc/newrelic.cfg
curl -L "https://raw.github.com/gist/2767604/newrelic-license.sh" -o $installdir/bin/newrelic-license
chmod +x $installdir/bin/newrelic-license
popd
Expand Down

0 comments on commit 5280700

Please sign in to comment.