2017-03-30 14:56:25 +02:00
|
|
|
HOMEDIR=~
|
|
|
|
CONFIGDIR=$HOMEDIR/.misptaxii
|
|
|
|
|
|
|
|
echo "[MISP-TAXII-SERVER]"
|
|
|
|
echo "POLLING SERVER INSTALLATION"
|
|
|
|
|
|
|
|
if [ ! -d $CONFIGDIR ]; then
|
|
|
|
echo "Creating config directory at $CONFIGDIR"
|
|
|
|
mkdir -p $CONFIGDIR;
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "FRIENDLY SERVER NAME:"
|
|
|
|
read SNAME
|
|
|
|
|
|
|
|
cat >> $CONFIGDIR/servers.yml << EOF
|
|
|
|
'$SNAME':
|
|
|
|
host: localhost
|
|
|
|
port: 9000
|
2017-03-30 14:57:36 +02:00
|
|
|
discovery_path:
|
2017-03-30 14:56:25 +02:00
|
|
|
use_https: False
|
|
|
|
taxii_version: 1.1
|
2017-03-30 14:57:36 +02:00
|
|
|
headers:
|