mirror of
https://github.com/cculianu/Fulcrum.git
synced 2026-08-13 12:33:27 +02:00
Docker Hub runs an older version of docker, so we can't use any newer glibc (>= 2.28) that support the statx syscall. Because of this we use Ubuntu Bionic as a base, which ships with version 2.27. When Docker Hub upgrades to Docker >= 18.04 we can use a newer base.
11 lines
313 B
Bash
Executable file
11 lines
313 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ ! -e "$SSL_CERTFILE" ] || [ ! -e "$SSL_KEYFILE" ] ; then
|
|
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -subj "/O=Fulcrum" -keyout "$SSL_KEYFILE" -out "$SSL_CERTFILE"
|
|
fi
|
|
|
|
if [ "$1" = "Fulcrum" ] ; then
|
|
set -- "$@" -D "$DATA_DIR" -c "$SSL_CERTFILE" -k "$SSL_KEYFILE"
|
|
fi
|
|
|
|
exec "$@"
|