diff options
author | Renato Botelho <renato@netgate.com> | 2016-06-21 14:26:42 -0300 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-06-21 14:46:20 -0400 |
commit | 28af9ca0f4b11ce8902df3573d4a42039a7e50cf (patch) | |
tree | c21143de19a4e9eccf0b3adbaff070ece21f7d31 /src/etc/rc | |
parent | 3e4adb7139b4cddbb06a2aba7e0727d1762b35ee (diff) | |
download | pfsense-28af9ca0f4b11ce8902df3573d4a42039a7e50cf.zip pfsense-28af9ca0f4b11ce8902df3573d4a42039a7e50cf.tar.gz |
Create openssl.cnf symlink during boot
(cherry picked from commit 5051739d72d31f8bd250148dfa65213723275310)
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-x | src/etc/rc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -373,6 +373,15 @@ echo "done." # Second upgrade stage /usr/local/sbin/${product}-upgrade -y -b 2 +# Copy default openssl config file +[ -d /etc/ssl ] \ + || mkdir -p /etc/ssl +[ -f /usr/local/share/${product}/ssl/openssl.cnf ] \ + && cp -f /usr/local/share/${product}/ssl/openssl.cnf /etc/ssl +mkdir -p /usr/local/openssl >/dev/null 2>&1 +ln -sf /etc/ssl/openssl.cnf \ + /usr/local/openssl/openssl.cnf + # Run the php.ini setup file and populate # /usr/local/etc/php.ini /etc/rc.php_ini_setup 2>/tmp/php_errors.txt |