diff --git a/start.sh b/start.sh index 21c42bfe..4f9900b7 100644 --- a/start.sh +++ b/start.sh @@ -32,18 +32,15 @@ if [ ! -z $HTTP_PORT ] ; then fi if [ ! -z $CDNJS ]; then - cdnjs=${CDNJS/\/\//\\/\\/} - sed -i "s/^cdnjs.*/cdnjs=$cdnjs/g" conf/app.conf + sed -i "s#^cdnjs.*#cdnjs=$CDNJS#g" conf/app.conf fi if [ ! -z $CDNCSS ]; then - cdncss=${CDNCSS/\/\//\\/\\/} - sed -i "s/^cdncss.*/cdncss=$cdnjs/g" conf/app.conf + sed -i "s#^cdncss.*#cdncss=$CDNCSS#g" conf/app.conf fi if [ ! -z $CDN ]; then - cdn=${CDN/\/\//\\/\\/} - sed -i "s/^cdn.*/cdn=$cdn/g" conf/app.conf + sed -i "s#^cdn.*#cdn=$CDN#g" conf/app.conf fi sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf