Commit a2d6818c50011b7271eea8afef4d83b1eaab8cf9

Authored by Chloé Azria
1 parent d2ebcd28
Exists in master

mv the chown /var/gavo/logs

conf/.env
... ... @@ -7,7 +7,7 @@ GITREPO_SERVER=voparis-tap-example
7 7  
8 8  
9 9  
10   -#########Be careful, the .env parameters have priority on gavo.rc from gitlab
  10 +#########Be careful, the .env parameters overwrites the gavo.rc from gitlab
11 11  
12 12 #Following parameters will take default values if commented :
13 13 DACHS_PORT=81
... ...
conf/dachs-dockerfile
... ... @@ -80,22 +80,18 @@ RUN if [ "$SERVERNAME" = "localhost" ]; then \
80 80 ;fi
81 81  
82 82 ##Adapt gavo.rc with ports and server name
83   -
  83 +RUN echo "initial gavo.rc" && less /etc/gavo.rc
84 84 RUN sed -i "/serverPort/c\serverPort:${DACHS_PORT}" /etc/gavo.rc
85 85 RUN sed -i "/corsOriginPat/c\corsOriginPat:${PROTOCOL}.*" /etc/gavo.rc
86 86  
87 87 RUN if [ "$SERVERNAME" = "localhost" ]; then \
88   - less /etc/gavo.rc &&\
89 88 sed -i "/serverURL/c\serverURL:" /etc/gavo.rc &&\
90   - echo "############################ WARNING gavo.rc overwrite -- use localhost for dev only ###############################" \
91   - less /etc/gavo.rc \
  89 + echo "############################ WARNING gavo.rc overwrite -- use localhost for dev only ###############################"\
92 90 ; else \
93   - less /etc/gavo.rc &&\
94 91 sed -i "/serverURL/c\serverURL:${PROTOCOL}://${SERVERNAME}.${DOMAIN}:${DACHS_PORT}" /etc/gavo.rc &&\
95   - echo "Warning : gavo.rc overwritten by .env servername, domain, protocol and port values" &&\
96   - less /etc/gavo.rc \
  92 + echo "Warning : gavo.rc overwritten by .env servername, domain, protocol and port values" \
97 93 ; fi
98   -
  94 +RUN echo "adapted gavo.rc" && less /etc/gavo.rc
99 95  
100 96 ###
101 97 #dachs configuration
... ... @@ -103,7 +99,7 @@ RUN if [ "$SERVERNAME" = "localhost" ]; then \
103 99 RUN chown dachsroot:gavo /var/gavo/etc/defaultmeta.txt
104 100 RUN chown dachsroot:gavo /var/gavo/web/nv_static/img/logo*
105 101 RUN chown -R dachsroot:gavo /var/gavo/inputs/*
106   -RUN chown -R dachsroot:gavo /var/gavo/logs
  102 +
107 103  
108 104  
109 105 ###
... ...
conf/docker-entrypoint.sh
... ... @@ -4,6 +4,7 @@
4 4 service ssh restart
5 5 service postgresql restart
6 6  
  7 +chown -R dachsroot:gavo /var/gavo/logs
7 8 /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -config=dachs -update
8 9  
9 10 for rep in $(find /var/gavo/inputs/[0-9a-zA-Z]* -maxdepth 0 -type d | cut -f5 -d'/')
... ...