-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·24 lines (20 loc) · 850 Bytes
/
entrypoint.sh
File metadata and controls
executable file
·24 lines (20 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
if [ ! -d "$TASKDDATA/pki/" ]; then
echo "Woah there pardner don't try starting the server without certs!"
echo "Mount the certs into /var/lib/taskd/pki"
exit 301
fi
if [ ! -d "$TASKDDATA/orgs" ]; then
taskd init --data $TASKDDATA && \
taskd config --force client.cert $TASKDDATA/pki/client.cert.pem && \
taskd config --force client.key $TASKDDATA/pki/client.key.pem && \
taskd config --force server.cert $TASKDDATA/pki/server.cert.pem && \
taskd config --force server.key $TASKDDATA/pki/server.key.pem && \
taskd config --force server.crl $TASKDDATA/pki/server.crl.pem && \
taskd config --force ca.cert $TASKDDATA/pki/ca.cert.pem && \
taskd config server 0.0.0.0:53589 && \
taskd config debug.tls 3 && \
taskd config log /dev/stdout && \
taskd add org Public
fi
exec taskd "$@"