Skip to content

Commit

Permalink
Ensure that environment variables are only accessible to be read root
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Jan 24, 2018
1 parent 51322e8 commit 9841f7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/centos/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ sed -i \
-e 's|# path.data:|path.data: /var/lib/logstash|' \
/etc/logstash/logstash.yml
/usr/share/logstash/bin/system-install /etc/logstash/startup.options
chmod 600 /etc/logstash/startup.options
chmod 600 /etc/default/logstash

3 changes: 3 additions & 0 deletions pkg/debian/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ sed -i \
-e 's|# path.data:|path.data: /var/lib/logstash|' \
/etc/logstash/logstash.yml
/usr/share/logstash/bin/system-install /etc/logstash/startup.options
chmod 600 /etc/logstash/startup.options
chmod 600 /etc/default/logstash

2 changes: 2 additions & 0 deletions pkg/ubuntu/after-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ sed -i \
-e 's|# path.data:|path.data: /var/lib/logstash|' \
/etc/logstash/logstash.yml
/usr/share/logstash/bin/system-install /etc/logstash/startup.options
chmod 600 /etc/logstash/startup.options
chmod 600 /etc/default/logstash

0 comments on commit 9841f7b

Please sign in to comment.