13 lines
321 B
Text
Executable file
13 lines
321 B
Text
Executable file
#!/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
|