acme-deploy-helpers/pikvm_reload.sh

8 lines
198 B
Bash
Raw Normal View History

2023-03-25 22:22:31 +01:00
#!/bin/bash
cert_location='/etc/kvmd/nginx/ssl'
for cert_file in 'server.crt' 'server.key'; do
chmod -v '0444' "${cert_location%/}"'/'"${cert_file}"
done
systemctl restart kvmd-nginx.service
ro