make init to work in alpine, fix typo

This commit is contained in:
Umputun
2020-12-17 21:25:51 -06:00
parent 2a9b59ebf7
commit 104ee308c6
+3 -2
View File
@@ -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