From add48f9418148c4bce4ef3a6a0642d353fd1f699 Mon Sep 17 00:00:00 2001 From: Mostafa Ghadamyari Date: Mon, 2 Aug 2021 18:35:22 +0430 Subject: [PATCH] fixed sed delimiter for CERTPATH and KEYPATH need to use another delimiter rather than `/` since the $CERTPATH and $KEYPATH variables contain `/` in the full path and cause the following error ``` `sed: -e expression #1, char 50: unknown option to `s' ``` --- scripts/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup b/scripts/setup index fb32153..8b7b859 100755 --- a/scripts/setup +++ b/scripts/setup @@ -136,8 +136,8 @@ fi if [ -n "$CERTPATH" ] && [ -n "$KEYPATH" ] then - sed -i "s/#COTURN_TLS_CERT_PATH=.*/COTURN_TLS_CERT_PATH=$CERTPATH/" .env - sed -i "s/#COTURN_TLS_KEY_PATH=.*/COTURN_TLS_KEY_PATH=$KEYPATH/" .env + sed -i "s,#COTURN_TLS_CERT_PATH=.*,COTURN_TLS_CERT_PATH=$CERTPATH," .env + sed -i "s,#COTURN_TLS_KEY_PATH=.*,COTURN_TLS_KEY_PATH=$KEYPATH," .env fi if [ "$prometheus_exporter" == "y" ]