1
0
mirror of https://github.com/hoellen/dockerfiles.git synced 2025-07-28 03:45:37 +00:00
Files
boinc
boring-nginx
cowrie
Dockerfile
README.md
run.sh
ghost
isso
lutim
lychee
nextcloud
nginx
nodejs
piwik
rainloop
rutorrent
searx
subsonic
tor
zerobin
LICENSE
dockerfiles/cowrie/run.sh
2016-06-03 18:59:45 +02:00

19 lines
602 B
Bash

#!/bin/sh
cd /cowrie
sed -i -e "s/hostname = svr04/hostname = ${HOSTNAME}/g" \
-e "s/#download_limit_size = 10485760/download_limit_size = ${DL_LIMIT}/g" \
-e "s/#internet_facing_ip = 9.9.9.9/internet_facing_ip = ${FACING_IP}/g" cowrie.cfg
if [ "${JSON_LOG}" == "False" ]; then
sed -i -e "s/\[output_jsonlog\]/#\[output_jsonlog\]/g" \
-e "s|logfile = log/cowrie.json|#logfile = log/cowrie.json|g" cowrie.cfg
fi
rm twistd.pid
mkdir -p /cowrie/log/tty
cp -R /cowrie/custom/* /cowrie
chown -R $UID:$GID /cowrie
su-exec $UID:$GID twistd -n -l /cowrie/log/cowrie.log cowrie