Skip to content

Commit e150a53

Browse files
committed
updated permissions on /etc/init.d/logstash in start.sh after awk operations
1 parent 94392c5 commit e150a53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ else
8484
# override LS_HEAP_SIZE variable if set
8585
if [ ! -z "$LS_HEAP_SIZE" ]; then
8686
awk -v LINE="LS_HEAP_SIZE=\"$LS_HEAP_SIZE\"" '{ sub(/^LS_HEAP_SIZE=.*/, LINE); print; }' /etc/init.d/logstash \
87-
> /etc/init.d/logstash.new && mv /etc/init.d/logstash.new /etc/init.d/logstash
87+
> /etc/init.d/logstash.new && mv /etc/init.d/logstash.new /etc/init.d/logstash && chmod +x /etc/init.d/logstash
8888
fi
8989

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

9696
service logstash start

0 commit comments

Comments
 (0)