aboutsummaryrefslogtreecommitdiffstats
path: root/service/entrypoint.sh
blob: 5445e3e28912b93b44e5544e19576fdcf9e0d308 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -e
set -x

# Chown the mounted data volume
chown -R service:service "/data/"

# Launch our service as user 'service'
exec su -s /bin/sh -c 'PYTHONUNBUFFERED=1 python3 n0t3b00k.py' service