Skip to content

Commit 2058aed

Browse files
committed
Revert arch-linux changes
1 parent d4b2b38 commit 2058aed

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

certificates/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,16 @@ install-root-certificate: rootca.crt ## installs a certificate in the host syste
6666
echo "Is the DOCKER service ready? press when ready" && read -n 1; \
6767
fi;\
6868
echo "======================================";,\
69-
sudo cp $< /etc/ca-certificates/trust-source/anchors/osparc.crt; \
70-
sudo trust extract-compat && \
71-
echo "# restarting docker daemon" && \
69+
$(if $(IS_OSX), \
70+
sudo security add-trusted-cert -d -k /Library/Keychains/System.keychain $<; \
71+
echo "Please restart the DOCKER service now..." && read -n 1; \
72+
echo "Is the DOCKER service ready? press when ready" && read -n 1; \
73+
, \
74+
sudo cp $< /usr/local/share/ca-certificates/osparc.crt; \
75+
sudo update-ca-certificates -f; \
76+
echo "# restarting docker daemon"; \
7277
sudo systemctl restart docker \
78+
) \
7379
)
7480

7581

0 commit comments

Comments
 (0)