new: Added server install script

pull/7/head
Hannah Ward 2017-03-30 13:56:25 +01:00
parent 080c2d41e7
commit 6ebd5c3eef
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
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
discovery_path: None
use_https: False
taxii_version: 1.1
headers: None