Skip to content
Browse files

make sure openssl ssl dir is available before compiling

  • Loading branch information...
1 parent 00236e1 commit e6f1927a54c95cef0100120422ec2a7ba375afcd @mpapis mpapis committed Aug 6, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 openssl/shell/functions
View
8 openssl/shell/functions
@@ -13,8 +13,12 @@ openssl_preconfigure()
then __sm.package.configure.flags shared
fi
- if (( ${static_flag:-0} == 1 ))
- then __sm.package.configure.flags --openssldir=/etc/openssl
+ if
+ (( ${static_flag:-0} == 1 ))
+ then
+ __sm.package.configure.flags --openssldir=/etc/openssl
+ [[ -d /etc/openssl ]] || mkdir -p /etc/openssl ||
+ __sm.package.error "Can not create /etc/openssl - make sure it is writable for current user"
fi
}

0 comments on commit e6f1927

Please sign in to comment.
Something went wrong with that request. Please try again.