Commit 6946c3415ab5f2fe9f067f89bf14d00352f44225

Authored by Chloé Azria
1 parent 4653a7dd
Exists in master

fix the sed in gavo.rc

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
conf/dachs-dockerfile
@@ -86,10 +86,10 @@ RUN sed -i "/serverPort/c\serverPort:${DACHS_PORT}" /etc/gavo.rc @@ -86,10 +86,10 @@ RUN sed -i "/serverPort/c\serverPort:${DACHS_PORT}" /etc/gavo.rc
86 RUN sed -i "/corsOriginPat/c\corsOriginPat:${PROTOCOL}.*" /etc/gavo.rc 86 RUN sed -i "/corsOriginPat/c\corsOriginPat:${PROTOCOL}.*" /etc/gavo.rc
87 87
88 RUN if [ "$SERVERNAME" = "localhost" ]; then \ 88 RUN if [ "$SERVERNAME" = "localhost" ]; then \
89 - sed -i "/serverURL/c\serverURL:" /etc/gavo.rc &&\ 89 + sed -i "/^serverURL/c\serverURL:" /etc/gavo.rc &&\
90 echo "############################ WARNING gavo.rc overwrite -- use localhost for dev only ###############################"\ 90 echo "############################ WARNING gavo.rc overwrite -- use localhost for dev only ###############################"\
91 ; else \ 91 ; else \
92 - sed -i "/serverURL/c\serverURL:${PROTOCOL}://${SERVERNAME}.${DOMAIN}:${DACHS_PORT}" /etc/gavo.rc &&\ 92 + sed -i "/^serverURL/c\serverURL:${PROTOCOL}://${SERVERNAME}.${DOMAIN}:${DACHS_PORT}" /etc/gavo.rc &&\
93 echo "Warning : gavo.rc overwritten by .env servername, domain, protocol and port values" \ 93 echo "Warning : gavo.rc overwritten by .env servername, domain, protocol and port values" \
94 ; fi 94 ; fi
95 95