This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur a/package/network/services/mosquitto/files/etc/init.d/mosquitto b/package/network/services/mosquitto/files/etc/init.d/mosquitto | |
--- a/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-22 12:39:16.268965752 +0200 | |
+++ b/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-22 12:39:39.700963482 +0200 | |
@@ -83,7 +83,7 @@ | |
# Use TLS/SSL for connection | |
if [ "$use_tls_ssl" == "1" ]; then | |
if [ "$tls_type" == "cert" ]; then | |
- echo "cafile $ca_file" >> $CONFIG | |
+ [ -n "$ca_file" ] && echo "cafile $ca_file" >> $CONFIG || echo "cafile /etc/cacert.pem" >> $CONFIG | |
echo "certfile $cert_file" >> $CONFIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur a/package/network/services/mosquitto/files/etc/init.d/mosquitto b/package/network/services/mosquitto/files/etc/init.d/mosquitto | |
--- a/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-22 12:26:37.133159507 +0200 | |
+++ b/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-22 12:28:00.509120517 +0200 | |
@@ -124,7 +124,7 @@ | |
# Use TLS/SSL for bridge connection | |
if [ "$use_remote_tls" == "1" ]; then | |
- echo "bridge_cafile $bridge_ca_file" >> $CONFIG | |
+ [ -n "$bridge_ca_file" ] && echo "bridge_cafile $bridge_ca_file" >> $CONFIG || echo "bridge_cafile /etc/cacert.pem" >> $CONFIG | |
[ -n "$bridge_cert_file" ] && echo "bridge_certfile $bridge_cert_file" >> $CONFIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur a/package/mosquitto/files/mosquitto.init b/package/mosquitto/files/mosquitto.init | |
--- a/package/mosquitto/files/mosquitto.init 2021-01-22 12:43:31.616946844 +0200 | |
+++ b/package/mosquitto/files/mosquitto.init 2021-01-22 12:35:17.360997419 +0200 | |
@@ -75,7 +75,12 @@ | |
# Use TLS/SSL for connection | |
if [ "$use_tls_ssl" == "1" ]; then | |
- echo "cafile $ca_file" >> $CONFIG | |
+ if [ -n "$ca_file" ] | |
+ then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Nausr a/package/mosquitto/files/mosquitto.init b/package/mosquitto/files/mosquitto.init | |
--- a/package/mosquitto/files/mosquitto.init 2021-01-21 19:12:55.101811434 +0200 | |
+++ b/package/mosquitto/files/mosquitto.init 2021-01-21 19:49:43.649268961 +0200 | |
@@ -111,8 +111,14 @@ | |
# Use TLS/SSL for bridge connection | |
if [ "$use_remote_tls" == "1" ]; then | |
echo "bridge_cafile $bridge_ca_file" >> $CONFIG | |
- echo "bridge_certfile $bridge_cert_file" >> $CONFIG | |
- echo "bridge_keyfile $bridge_key_file" >> $CONFIG | |
+ if [ -n "$bridge_cert_file" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur a/package/network/services/mosquitto/files/etc/init.d/mosquitto b/package/network/services/mosquitto/files/etc/init.d/mosquitto | |
--- a/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-21 14:54:31.468052585 +0200 | |
+++ b/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-21 14:57:50.782195175 +0200 | |
@@ -125,7 +125,7 @@ | |
# Use TLS/SSL for bridge connection | |
if [ "$use_remote_tls" == "1" ]; then | |
echo "bridge_cafile $bridge_ca_file" >> $CONFIG | |
- echo "bridge_certfile $bridge_cert_file" >> $CONFIG | |
+ [ -n "$bridge_cert_file" ] && echo "bridge_certfile $bridge_cert_file" >> $CONFIG | |
[ -n "$bridge_key_file" ] && echo "bridge_keyfile $bridge_key_file" >> $CONFIG |