This commit is contained in:
Michel Oosterhof
2017-03-19 18:44:54 +04:00
3 changed files with 3 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ find_cowrie_directory() {
else else
COWRIEDIR=$(dirname $PWD/$0)/.. COWRIEDIR=$(dirname $PWD/$0)/..
fi fi
COWRIEDIR=$(cd ${COWRIEDIR} && pwd -P 2>/dev/null | pwd) COWRIEDIR=$(cd ${COWRIEDIR} && pwd -P 2>/dev/null || pwd)
} }
activate_venv() { activate_venv() {

View File

@@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS `input` (
CREATE TABLE IF NOT EXISTS `sensors` ( CREATE TABLE IF NOT EXISTS `sensors` (
`id` int(11) NOT NULL auto_increment, `id` int(11) NOT NULL auto_increment,
`ip` varchar(15) NOT NULL, `ip` varchar(255) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ; ) ;

1
doc/sql/update11.sql Normal file
View File

@@ -0,0 +1 @@
ALTER TABLE sensors MODIFY ip VARCHAR(255) NOT NULL;