summaryrefslogtreecommitdiffstats
path: root/docker/usr/bin/entrypoint
blob: a450d20607daf7302bf04c5b3d1ae409336fa209 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

for FOLDER in /data/gitea/conf /data/gitea/log /data/git /data/ssh; do
    mkdir -p ${FOLDER}
done

if [ $# -gt 0 ]; then
    exec "$@"
else
    exec /bin/s6-svscan /etc/s6
fi