File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- FROM alpine:3.17 AS builder
1+ FROM alpine:3.18 AS builder
22
33RUN apk add --no-cache \
44 build-base \
@@ -23,13 +23,13 @@ RUN make install
2323WORKDIR /goaccess
2424RUN cp /goaccess-temp/goaccess.tar.gz .
2525RUN tar --strip-components=1 -xzvf goaccess.tar.gz
26- RUN sed -i "s/GWSocket<\/ a>/GWSocket<\/ a> ( <a href='https:\/\/ tiny.one\/ xgoan'>GOAN<\/ a> <span>v1.1.16 <\/ span> )/" /goaccess/resources/tpls.html
26+ RUN sed -i "s/GWSocket<\/ a>/GWSocket<\/ a> ( <a href='https:\/\/ tiny.one\/ xgoan'>GOAN<\/ a> <span>v1.1.17 <\/ span> )/" /goaccess/resources/tpls.html
2727RUN sed -i "s/bottom: 190px/bottom: 260px/" /goaccess/resources/css/app.css
2828RUN ./configure --enable-utf8 --enable-geoip=mmdb --with-getline
2929RUN make
3030RUN make install
3131
32- FROM alpine:3.17
32+ FROM alpine:3.18
3333RUN apk add --no-cache \
3434 bash \
3535 nginx \
@@ -67,6 +67,9 @@ ADD /resources/scripts/logs logs
6767COPY /resources/scripts/start.sh start.sh
6868RUN chmod +x start.sh
6969
70+ # store archives
71+ RUN mkdir -p /goaccess-logs/archives
72+
7073VOLUME ["/opt/log" ]
7174VOLUME ["/opt/custom" ]
7275EXPOSE 7880
Original file line number Diff line number Diff line change @@ -4,14 +4,11 @@ function checkFile(){
44 if [ -z " $1 " ]; then
55 return 1
66 else
7- if [ -e " $file " ] && [ -r " $file " ]; then
8- echo -e " \tFile $file exists and is readable "
7+ if [ -e " $1 " ]; then
8+ echo -e " \tFile $1 exists"
99 return 0
10- elif [ -e " $file_path " ]; then
11- echo -e " \tFile $file exists but is not readable"
12- return 1
1310 else
14- echo -e " \tFile $file does not exist"
11+ echo -e " \tFile $1 does not exist"
1512 return 1
1613 fi
1714 fi
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ source $(dirname "$0")/logs/traefik.sh
88source $( dirname " $0 " ) /logs/custom.sh
99source $( dirname " $0 " ) /logs/ncsa_combined.sh
1010
11- goan_version=" GOAN v1.1.16 "
11+ goan_version=" GOAN v1.1.17 "
1212goan_log_path=" /opt/log"
1313
1414goaccess_ping_interval=15
You can’t perform that action at this time.
0 commit comments