mrlesmithjr / graylog2

GNU General Public License v2.0
118 stars 57 forks source link

Script fails at line 317 on Ubuntu. #18

Closed burncycl closed 10 years ago

burncycl commented 10 years ago

Making graylog2-web-interface startup on boot Adding system startup for /etc/init.d/graylog2-web-interface ... /etc/rc0.d/K20graylog2-web-interface -> ../init.d/graylog2-web-interface /etc/rc1.d/K20graylog2-web-interface -> ../init.d/graylog2-web-interface /etc/rc6.d/K20graylog2-web-interface -> ../init.d/graylog2-web-interface /etc/rc2.d/S20graylog2-web-interface -> ../init.d/graylog2-web-interface /etc/rc3.d/S20graylog2-web-interface -> ../init.d/graylog2-web-interface /etc/rc4.d/S20graylog2-web-interface -> ../init.d/graylog2-web-interface /etc/rc5.d/S20graylog2-web-interface -> ../init.d/graylog2-web-interface Updating graylog2.conf and rsyslog.conf $template GRAYLOG2,"<%PRI%>1 %timegenerated:::date-rfc3339% %hostname% %syslogtag% - %APP-NAME%: %msg:::drop-last-lf%\n" ./graylog2/install_graylog2_20_ubuntu.sh: line 317: unexpected EOF while looking for matching `''

burncycl commented 10 years ago

install_graylog2_20_ubuntu.sh

sed -i -e 's|graylog2-server.uris=""|graylog2-server.uris="http://127.0.0.1:12900/"|' /opt/graylog2-web-interface/conf/graylog2-web-in$ app_secret=$(pwgen -s 96) sed -i -e 's|application.secret=""|application.secret="'$app_secret'"|' /opt/graylog2-web-interface/conf/graylog2-web-interface.conf

burncycl commented 10 years ago

Even when I complete the app_secret, and finish the script manually, graylog2 does not work as expected.

mrlesmithjr commented 10 years ago

Thanks for catching this. I added an additional rsyslog template yesterday and fat fingered it. It should be good to go now.