Browse Source

Load mozroots for sudo properly

Hamilton Turner 10 years ago
parent
commit
20e89ae9d6
2 changed files with 6 additions and 8 deletions
  1. 0 8
      frameworks/C#/aspnet/install.sh
  2. 6 0
      toolset/setup/linux/languages/mono.sh

+ 0 - 8
frameworks/C#/aspnet/install.sh

@@ -1,11 +1,3 @@
 #!/bin/bash
 #!/bin/bash
 
 
-echo "Installing RootCAs from Mozilla..."; 
-mozroots --import --sync;
-sudo mozroots --import --sync;
-
 fw_depends nginx mono xsp
 fw_depends nginx mono xsp
-
-echo "Installing RootCAs from Mozilla..."; 
-mozroots --import --sync;
-sudo mozroots --import --sync;

+ 6 - 0
toolset/setup/linux/languages/mono.sh

@@ -1,10 +1,13 @@
 #!/bin/bash
 #!/bin/bash
 
 
+set -x
 
 
 RETCODE=$(fw_exists mono.installed)
 RETCODE=$(fw_exists mono.installed)
 [ ! "$RETCODE" == 0 ] || { \
 [ ! "$RETCODE" == 0 ] || { \
   echo "Installing RootCAs from Mozilla..."; 
   echo "Installing RootCAs from Mozilla..."; 
   mozroots --import --sync;
   mozroots --import --sync;
+  echo "ROOT: Installing RootCAs from Mozilla..."; 
+  sudo $IROOT/mono-3.6.0-install/bin/mozroots --import --sync;
   return 0; }
   return 0; }
 
 
 sudo apt-get install -y build-essential \
 sudo apt-get install -y build-essential \
@@ -27,4 +30,7 @@ make install
 echo "Installing RootCAs from Mozilla..."; 
 echo "Installing RootCAs from Mozilla..."; 
 mozroots --import --sync;
 mozroots --import --sync;
 
 
+echo "ROOT: Installing RootCAs from Mozilla..."; 
+sudo $IROOT/mono-3.6.0-install/bin/mozroots --import --sync;
+
 touch $IROOT/mono.installed
 touch $IROOT/mono.installed