summaryrefslogtreecommitdiff
path: root/docker/usr/local/bin/entrypoint.sh
blob: 5618b4bce189eafa87f5c341a750c0bf24dca7dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# Generate a new self signed SSL certificate when none is provided in the volume
if [ ! -f /etc/nginx/ssl/kanboard.key  ] || [ ! -f /etc/nginx/ssl/kanboard.crt ]
then
    openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/kanboard.key -out /etc/nginx/ssl/kanboard.crt -subj "/C=GB/ST=London/L=London/O=Self Signed/OU=IT Department/CN=kanboard.org"
fi

chown -R nginx:nginx /var/www/app/data
chown -R nginx:nginx /var/www/app/plugins

exec /bin/s6-svscan /etc/services.d