Skip to content

Commit

Permalink
Fix #22, copy kippo cfg after clone
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmichaelsmith committed Nov 20, 2014
1 parent 76e2c21 commit a74a2d5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ then
mkdir /etc/dionaea
cp /honeypot-setup-script/templates/dionaea.conf.tmpl /etc/dionaea/dionaea.conf

mkdir /opt/kippo
cp /honeypot-setup-script/templates/kippo.cfg.tmpl /opt/kippo/kippo.cfg
cp /honeypot-setup-script/templates/kippo.cfg.tmpl /tmp/kippo.cfg
else
mkdir /etc/dionaea
sudo mkdir /etc/dionaea
sudo wget https://raw.github.com/andrewmichaelsmith/honeypot-setup-script/master/templates/dionaea.conf.tmpl -O /etc/dionaea/dionaea.conf

mkdir /opt/kippo
sudo wget https://raw.github.com/andrewmichaelsmith/honeypot-setup-script/master/templates/kippo.cfg.tmpl -O /opt/kippo/kippo.cfg
sudo wget https://raw.github.com/andrewmichaelsmith/honeypot-setup-script/master/templates/kippo.cfg.tmpl -O /tmp/kippo.cfg
fi

if [ $(dpkg-query -W -f='${Status}' sudo 2>/dev/null | grep -c "ok installed") -eq 0 ]
Expand Down Expand Up @@ -101,6 +99,7 @@ sudo apt-get install -y subversion python-dev openssl python-openssl python-pyas
#install kippo to /opt/kippo
sudo mkdir /opt/kippo/
sudo git clone https://github.com/desaster/kippo.git /opt/kippo/
sudo cp /tmp/kippo.cfg /opt/kippo/

#add kippo user that can't login
sudo useradd -r -s /bin/false kippo
Expand Down

0 comments on commit a74a2d5

Please sign in to comment.