mirror of https://github.com/dirtbags/moth.git
19 lines
317 B
Bash
Executable File
19 lines
317 B
Bash
Executable File
#! /bin/sh
|
|
|
|
exec 2>&1
|
|
|
|
DB=/var/lib/ctf/tokens.db
|
|
|
|
if [ ! -f $DB ]; then
|
|
# Append any package-provided tokens
|
|
cat /opt/*/tokens >$DB 2>/dev/null
|
|
chown ctf $DB
|
|
fi
|
|
|
|
for fn in /var/lib/ctf/tokens.db /var/lib/ctf/claim.db; do
|
|
touch $fn
|
|
chown ctf $fn
|
|
done
|
|
|
|
exec tcpsvd -u ctf 0 1 /opt/mcp/bin/in.tokend
|