Add missing forward-slash escapes in sed

This commit is contained in:
Brian Lycett 2019-01-16 15:21:03 +00:00
parent 1548837b20
commit 9a4ad3f48d

View File

@ -9,7 +9,7 @@ if [ ! "$SERVER_HOSTNAME" ]; then export SERVER_HOSTNAME=example.com; fi
if [ "$LDAP_TLS_CACERT" ]; then
echo "$LDAP_TLS_CACERT" >/opt/ca.crt
sed -i "s/TLS_CACERT.*/TLS_CACERT /opt/ca.crt/" /etc/ldap/ldap.conf
sed -i "s/TLS_CACERT.*/TLS_CACERT \/opt\/ca.crt/" /etc/ldap/ldap.conf
fi