From abedcaf0b96bbd4f5d5675af1c70bffcf8bcfdee Mon Sep 17 00:00:00 2001 From: John Hooks Date: Wed, 2 Aug 2017 21:38:23 -0400 Subject: [PATCH] Change sed command to replace existing sample mount instead of creating new line. Uses pipe as delimiter so it's easier to read. --- xo_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xo_install.sh b/xo_install.sh index eecb6de..4db767b 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -34,7 +34,7 @@ sudo /usr/bin/apt-get install --yes build-essential redis-server libpng-dev git cd $xo_server_dir sudo npm install && npm run build sudo cp sample.config.yaml .xo-server.yaml -sudo sed -i /mounts/a\\" '/': '/opt/xo-web/dist'" .xo-server.yaml +sudo sed -i "s|#'/': '/path/to/xo-web/dist/'|'/': '/opt/xo-web/dist'|" .xo-server.yaml cd $xo_web_dir yarn install --force