From 104ee308c6d6258ae719288a4e7aec5250b53980 Mon Sep 17 00:00:00 2001 From: Umputun Date: Thu, 17 Dec 2020 21:25:51 -0600 Subject: [PATCH] make init to work in alpine, fix typo --- docker-init.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-init.sh b/docker-init.sh index 1c96a586..cac2281e 100755 --- a/docker-init.sh +++ b/docker-init.sh @@ -1,11 +1,12 @@ #!/bin/sh echo "prepare environment" # replace BASE_URL constant by REMARK_URL -sed -i "s|https://demo.remark42.com|${REMARK_URL}|g" /srv/web/*.{js,html} +sed -i "s|https://demo.remark42.com|${REMARK_URL}|g" /srv/web/*.html +sed -i "s|https://demo.remark42.com|${REMARK_URL}|g" /srv/web/*.js if [ -n "${SITE_ID}" ]; then #replace "site_id: 'remark'" by SITE_ID - se -i "s|'remark'|'${SITE_ID}'|g" /srv/web/*.html + sed -i "s|'remark'|'${SITE_ID}'|g" /srv/web/*.html fi if [ -d "/srv/var" ]; then