Sed apparently supports custom separators

This commit is contained in:
Leopere 2018-06-05 13:59:05 -04:00
parent d6cd2f6b51
commit 0ea82f41c5

View file

@ -75,7 +75,7 @@ function set_conf() {
echof info "User did not attempt to configure $SITE_ADDRESS" echof info "User did not attempt to configure $SITE_ADDRESS"
else else
echof info "Setting '$SITE_ADDRESS' $SITE_ADDRESS in /app/config/siteConfig.json" echof info "Setting '$SITE_ADDRESS' $SITE_ADDRESS in /app/config/siteConfig.json"
sed -i 's/"host": "https://www.example.com"/"host": "https://"$SITE_ADDRESS/' /app/config/siteConfig.json sed -i 's,"host": "https://www.example.com","host": "https://"$SITE_ADDRESS,' /app/config/siteConfig.json
fi fi
;; ;;
GOOGLE_ANALYTICS_UID ) GOOGLE_ANALYTICS_UID )