Skip to content

Commit

Permalink
updated permissions on /etc/init.d/logstash in start.sh after awk ope…
Browse files Browse the repository at this point in the history
…rations
  • Loading branch information
spujadas committed May 7, 2016
1 parent 94392c5 commit e150a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ else
# override LS_HEAP_SIZE variable if set
if [ ! -z "$LS_HEAP_SIZE" ]; then
awk -v LINE="LS_HEAP_SIZE=\"$LS_HEAP_SIZE\"" '{ sub(/^LS_HEAP_SIZE=.*/, LINE); print; }' /etc/init.d/logstash \
> /etc/init.d/logstash.new && mv /etc/init.d/logstash.new /etc/init.d/logstash
> /etc/init.d/logstash.new && mv /etc/init.d/logstash.new /etc/init.d/logstash && chmod +x /etc/init.d/logstash
fi

# override LS_OPTS variable if set
if [ ! -z "$LS_OPTS" ]; then
awk -v LINE="LS_OPTS=\"$LS_OPTS\"" '{ sub(/^LS_OPTS=.*/, LINE); print; }' /etc/init.d/logstash \
> /etc/init.d/logstash.new && mv /etc/init.d/logstash.new /etc/init.d/logstash
> /etc/init.d/logstash.new && mv /etc/init.d/logstash.new /etc/init.d/logstash && chmod +x /etc/init.d/logstash
fi

service logstash start
Expand Down

0 comments on commit e150a53

Please sign in to comment.