djebbibmw / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

Missing single quotes in install.sh #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Looks like install.sh in r867 is missing single quotes at the end of lines
639
649
660

Restarting with updated install.sh...
/bin/bash /usr/local/elsa/contrib/install.sh node update
Assuming distro to be ubuntu
/usr/local/elsa/contrib/install.sh: line 640: syntax error near unexpected 
token `('
/usr/local/elsa/contrib/install.sh: line 640: ` mysql -u$MYSQL_ROOT_USER 
$MYSQL_PASS_SWITCH $MYSQL_NODE_DB -e 'INSERT IGNORE INTO fields_classes_map 
(class_id, field_id, field_order) VALUES ((SELECT id FROM classes WHERE 
class="NAT"), (SELECT id FROM fields WHERE field="proto"), 5)''

639:    mysql -u$MYSQL_ROOT_USER $MYSQL_PASS_SWITCH $MYSQL_NODE_DB -e 'INSERT 
IGNORE INTO classes (id, class, parent_id) VALUES(37, "NAT", 0)

649:    mysql -u$MYSQL_ROOT_USER $MYSQL_PASS_SWITCH $MYSQL_NODE_DB -e 'INSERT 
IGNORE INTO classes (id, class, parent_id) VALUES(38, "FTP", 0)

660:    mysql -u$MYSQL_ROOT_USER $MYSQL_PASS_SWITCH $MYSQL_NODE_DB -e 'INSERT 
IGNORE INTO classes (id, class, parent_id) VALUES(39, "CISCO_WARN", 0)

Original issue reported on code.google.com by kebut...@gmail.com on 9 May 2013 at 1:08

GoogleCodeExporter commented 9 years ago
Sorry, fixed.

Original comment by mchol...@gmail.com on 10 May 2013 at 7:55