Browse Source

Debug travis mono ssl

Pēteris Ņikiforovs 10 years ago
parent
commit
8fc98a5026
2 changed files with 11 additions and 10 deletions
  1. 3 0
      frameworks/CSharp/aspnet/setup_nginx.sh
  2. 8 10
      toolset/setup/linux/languages/mono.sh

+ 3 - 0
frameworks/CSharp/aspnet/setup_nginx.sh

@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# debug
+find ~/.config
+
 set -e
 
 # mono environment variables

+ 8 - 10
toolset/setup/linux/languages/mono.sh

@@ -1,16 +1,9 @@
 #!/bin/bash
 
-post_install() {
-  # load environment
-  . $IROOT/mono.installed
-
-  # import SSL certificates
-  #mozroots --import --sync
-  echo -e 'y\ny\ny\n' | certmgr -ssl https://nuget.org
-}
+set -e
 
 RETCODE=$(fw_exists $IROOT/mono.installed)
-[ ! "$RETCODE" == 0 ] || { post_install; return 0; }
+[ ! "$RETCODE" == 0 ] || { return 0; }
 
 # what do we want? latest mono
 # how do we want it? already compiled from packages but without sudo
@@ -53,6 +46,11 @@ rm -rf $TEMP
 file $MONO_HOME/bin/* | grep "POSIX shell script" | awk -F: '{print $1}' | xargs sed -i "s|/opt/mono-$SNAPDATE|$MONO_HOME|g"
 sed -i "s|/opt/mono-$SNAPDATE|$MONO_HOME|g" $MONO_HOME/lib/pkgconfig/*.pc $MONO_HOME/etc/mono/config
 
-post_install
+# debug
+find ~/.config
+
+# import SSL certificates
+mozroots --import --sync
+echo -e 'y\ny\ny\n' | certmgr -ssl https://nuget.org
 
 touch $IROOT/mono.installed