You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
803 B
15 lines
803 B
5 years ago
|
#!/bin/sh
|
||
|
|
||
|
{% if journal_remote_letsencrypt_cert is defined %}
|
||
|
mkdir -p /etc/systemd/journal-remote-tls
|
||
|
chown systemd-journal-remote:systemd-journal-remote /etc/systemd/journal-remote-tls
|
||
|
chmod 700 /etc/systemd/journal-remote-tls
|
||
|
if [ -e /var/lib/dehydrated/certificates/certs/{{ journal_remote_letsencrypt_cert }}/privkey.pem ]; then
|
||
|
cp -f /var/lib/dehydrated/certificates/certs/{{ journal_remote_letsencrypt_cert }}/privkey.pem /etc/systemd/journal-remote-tls/
|
||
|
cp -f /var/lib/dehydrated/certificates/certs/{{ journal_remote_letsencrypt_cert }}/fullchain.pem /etc/systemd/journal-remote-tls/
|
||
|
chown systemd-journal-remote:systemd-journal-remote /etc/systemd/journal-remote-tls/*
|
||
|
chmod 600 /etc/systemd/journal-remote-tls/privkey.pem
|
||
|
/sbin/service systemd-journal-remote restart
|
||
|
fi
|
||
|
{% endif %}
|