File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff 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
@@ -84,8 +90,7 @@ remove-root-certificate: ## removes the certificate from the host system
8490 $(if $(IS_OSX ) , \
8591 sudo security remove-trusted-cert -d rootca.crt; \
8692 , \
87- sudo rm -f /etc/ca-certificates/trust-source/anchors/osparc.crt; \
88- sudo trust extract-compat; \
89- sudo systemctl restart docker; \
93+ sudo rm -f /usr/local/share/ca-certificates/osparc.crt; \
94+ sudo update-ca-certificates -f; \
9095 ) \
9196 )
You can’t perform that action at this time.
0 commit comments