diff --git a/feeds/tip/luci/luci-mod-ucentral/root/sbin/certupdate b/feeds/tip/luci/luci-mod-ucentral/root/sbin/certupdate index 8d760ab2d..d29eed8a7 100755 --- a/feeds/tip/luci/luci-mod-ucentral/root/sbin/certupdate +++ b/feeds/tip/luci/luci-mod-ucentral/root/sbin/certupdate @@ -17,11 +17,14 @@ mkdir -p /tmp/certs tar x -C /tmp/certs -f /tmp/certs.tar # make sure the required files exist -[ -f /tmp/certs/cas.pem -a -f /tmp/certs/key.pem -a -f /tmp/certs/cert.pem ] || exit 1 +[ -f /tmp/certs/key.pem -a -f /tmp/certs/cert.pem ] || exit 1 # copy the certificates to /etc cp /tmp/certs/*.pem /certificates +# remove old operational certs +rm /certificates/operational.* + # copy dev-id or gateway.json for a in gateway.json; do if [ -f /tmp/certs/$a ]; then