example-deployable-app/quassel/root/etc/s6-overlay/s6-rc.d/init-quassel-config/run

13 lines
321 B
Text
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# generate key
if [[ ! -f /config/quasselCert.pem ]]; then
openssl req -x509 -nodes -days 3650 \
-newkey rsa:4096 -keyout /config/quasselCert.pem -out /config/quasselCert.pem \
-subj "/CN=Quassel-core"
fi
# permissions
lsiown -R abc:abc \
/config