This commit is contained in:
Bob Mottram 2015-02-02 21:15:11 +00:00
parent e87a4a7446
commit a2ef741834
1 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ function export_settings {
fi fi
if [ ! -f $EXPORT_FILE ]; then if [ ! -f $EXPORT_FILE ]; then
if [ $SSL_PROTOCOLS ]; then if [ "$SSL_PROTOCOLS" ]; then
echo "SSL_PROTOCOLS=$SSL_PROTOCOLS" >> $EXPORT_FILE echo "SSL_PROTOCOLS=$SSL_PROTOCOLS" >> $EXPORT_FILE
fi fi
if [ $SSL_CIPHERS ]; then if [ $SSL_CIPHERS ]; then
@ -417,7 +417,7 @@ function export_settings {
exit 0 exit 0
fi fi
if [ $SSL_PROTOCOLS ]; then if [ "$SSL_PROTOCOLS" ]; then
if grep -q "SSL_PROTOCOLS" $EXPORT_FILE; then if grep -q "SSL_PROTOCOLS" $EXPORT_FILE; then
sed -i "s|SSL_PROTOCOLS=.*|SSL_PROTOCOLS=$SSL_PROTOCOLS|g" $EXPORT_FILE sed -i "s|SSL_PROTOCOLS=.*|SSL_PROTOCOLS=$SSL_PROTOCOLS|g" $EXPORT_FILE
else else