mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 01:52:51 +00:00
luci-mod-ucentral: remove digicert specific files
Fixes: WIFI-14694 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -18,13 +18,12 @@ tar x -C /tmp/certs -f /tmp/certs.tar
|
|||||||
|
|
||||||
# make sure the required files exist
|
# 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/cas.pem -a -f /tmp/certs/key.pem -a -f /tmp/certs/cert.pem ] || exit 1
|
||||||
[ -f /tmp/certs/gateway.json -o -f /tmp/certs/dev-id ] || exit 1
|
|
||||||
|
|
||||||
# copy the certificates to /etc
|
# copy the certificates to /etc
|
||||||
cp /tmp/certs/*.pem /certificates
|
cp /tmp/certs/*.pem /certificates
|
||||||
|
|
||||||
# copy dev-id or gateway.json
|
# copy dev-id or gateway.json
|
||||||
for a in dev-id gateway.json; do
|
for a in gateway.json; do
|
||||||
if [ -f /tmp/certs/$a ]; then
|
if [ -f /tmp/certs/$a ]; then
|
||||||
cp /tmp/certs/$a /certificates
|
cp /tmp/certs/$a /certificates
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user