Logo
Explore Help
Sign In
Quico/acme-deploy-helpers
1
0
Fork 0
You've already forked acme-deploy-helpers
Code Issues Pull Requests Packages Projects Releases Wiki Activity
acme-deploy-helpers/pikvm_reload.sh

10 lines
272 B
Bash
Raw Normal View History

feat(pikvm): Add Pi-KVM deploy script
2023-03-25 22:22:31 +01:00
#!/bin/bash
feat(pikvm): Move cert files from /tmp We now have acme.sh copy cert files into a directory that's writable, specifically into '/tmp', this happens outside the scope of this script purely within acme.sh. Most mounts remain mounted read-only so we amend this script to make the '/' mount point read-writable and move cert files into their correct location before making the '/' mount point read-only again.
2025-06-03 23:50:53 +02:00
rw
feat(pikvm): Add Pi-KVM deploy script
2023-03-25 22:22:31 +01:00
cert_location='/etc/kvmd/nginx/ssl'
for cert_file in 'server.crt' 'server.key'; do
feat(pikvm): Move cert files from /tmp We now have acme.sh copy cert files into a directory that's writable, specifically into '/tmp', this happens outside the scope of this script purely within acme.sh. Most mounts remain mounted read-only so we amend this script to make the '/' mount point read-writable and move cert files into their correct location before making the '/' mount point read-only again.
2025-06-03 23:50:53 +02:00
mv --force --verbose '/tmp/'"${cert_file}" "${cert_location%/}"'/'
feat(pikvm): Add Pi-KVM deploy script
2023-03-25 22:22:31 +01:00
chmod -v '0444' "${cert_location%/}"'/'"${cert_file}"
done
systemctl restart kvmd-nginx.service
ro
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 71ms Template: 2ms
English
English
Licenses API