15 lines
422 B
Bash
15 lines
422 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Refresh system trust store if custom certs are mounted.
|
|
if ls /usr/local/share/ca-certificates/*.crt >/dev/null 2>&1; then
|
|
update-ca-certificates >/dev/null
|
|
fi
|
|
|
|
# Sync Mono trust store with system CAs.
|
|
if command -v cert-sync >/dev/null 2>&1; then
|
|
cert-sync /etc/ssl/certs/ca-certificates.crt >/dev/null
|
|
fi
|
|
|
|
exec xsp4 --port 8080 --nonstop --address 0.0.0.0 --applications /:.
|