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

14 lines
321 B
Text
Raw Normal View History

2024-06-14 02:18:48 +00:00
#!/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