mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-02 23:25:41 +00:00
UNMAINTENED
This commit is contained in:
12
unmaintained/cowrie/run.sh
Normal file
12
unmaintained/cowrie/run.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd /cowrie
|
||||
|
||||
rm twistd.pid &>/dev/null
|
||||
mkdir -p /cowrie/log/tty &>/dev/null
|
||||
cp -R /custom/* /cowrie &>/dev/null
|
||||
chown -R $UID:$GID /cowrie
|
||||
|
||||
COWRIEDIR=$(dirname $0)
|
||||
export PYTHONPATH=${PYTHONPATH}:${COWRIEDIR}
|
||||
|
||||
exec su-exec $UID:$GID /sbin/tini -- twistd -n -l /cowrie/log/cowrie.log cowrie
|
Reference in New Issue
Block a user