11 lines
650 B
Plaintext
11 lines
650 B
Plaintext
post_install() {
|
|
sed -i "s/<<sitekey>>/$(uuidgen)/" /etc/default/fastapi-dls
|
|
sed -i "s/<<instanceref>>/$(uuidgen)/" /etc/default/fastapi-dls
|
|
|
|
echo 'The environment variables for this server can be edited at: /etc/default/fastapi-dls'
|
|
echo 'The server can be started with: systemctl start fastapi-dls.service'
|
|
echo
|
|
echo 'A valid HTTPS certificate needs to be installed to /var/lib/fastapi-dls/cert/webserver.{crt,key}'
|
|
echo 'A self-signed certificate can be generated with: openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /var/lib/fastapi-dls/cert/webserver.key -out /var/lib/fastapi-dls/cert/webserver.crt'
|
|
}
|