certificates: stage gateway.json

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2024-11-15 07:49:01 +01:00
parent 656cc231a8
commit 36ce8d2abb

View File

@@ -8,7 +8,7 @@ copy_certificates() {
cp /certificates/*.pem /etc/ucentral/
chown root.network /etc/ucentral/*.pem
chmod 0440 root.network /etc/ucentral/*.pem
[ -f /certificates/gateway.json ] && cp /certificates/gateway.json /etc/ucentral/
[ -f /certificates/gateway.json ] && cp /certificates/gateway.json /etc/ucentral/gateway.flash
[ -f /certificates/dev-id ] && cp /certificates/dev-id /etc/ucentral/
[ -f /etc/ucentral/dev-id ] && chmod 0400 /etc/ucentral/dev-id
[ -f /certificates/restrictions.json ] && cp /certificates/restrictions.json /etc/ucentral/