2023-03-25 22:22:31 +01:00
|
|
|
#!/bin/bash
|
2025-06-03 23:50:53 +02:00
|
|
|
rw
|
2023-03-25 22:22:31 +01:00
|
|
|
cert_location='/etc/kvmd/nginx/ssl'
|
|
|
|
for cert_file in 'server.crt' 'server.key'; do
|
2025-06-03 23:50:53 +02:00
|
|
|
mv --force --verbose '/tmp/'"${cert_file}" "${cert_location%/}"'/'
|
2023-03-25 22:22:31 +01:00
|
|
|
chmod -v '0444' "${cert_location%/}"'/'"${cert_file}"
|
|
|
|
done
|
|
|
|
systemctl restart kvmd-nginx.service
|
|
|
|
ro
|