File tree Expand file tree Collapse file tree 6 files changed +21
-11
lines changed
Expand file tree Collapse file tree 6 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -44,4 +44,5 @@ COPY /resources/scripts/start.sh start.sh
4444VOLUME ["/opt/log" ]
4545VOLUME ["/opt/custom" ]
4646EXPOSE 7880
47- CMD ["bash" , "/goan/start.sh" ]
47+ # CMD ["bash", "/goan/start.sh"]
48+ ENTRYPOINT ["tini" , "--" , "/goan/start.sh" ]
Original file line number Diff line number Diff line change @@ -18,11 +18,20 @@ function custom_init(){
1818
1919 if [[ -f ${goan_config} ]]; then
2020 echo -e " goaccess.conf file found"
21+ if [[ " ${DEBUG} " == " True" ]]; then
22+ echo -e " \n**************BEGIN DEBUG***********************"
23+ echo -e " ${goan_config} file permissions"
24+ stat -L -c " %a %G %U" ${goan_config}
25+ echo -e " \n"
26+ echo -e " ${goan_config} content"
27+ cat ${goan_config}
28+ echo -e " **************END DEBUG***********************\n"
29+ fi
2130 if [[ -r ${goan_config} ]]; then
2231 echo -e " goaccess.conf readable"
2332 else
2433 echo -e " goaccess.conf not readable"
25- exit
34+ # exit
2635 fi
2736 else
2837 echo -e " goaccess.conf not found"
@@ -32,7 +41,7 @@ function custom_init(){
3241
3342function custom_instance(){
3443 echo -e " \nRUN CUSTOM GOACCESS"
35- tini -s -- /goaccess/goaccess --daemonize -- no-global-config --config-file=${goan_config}
44+ /goaccess/goaccess --no-global-config --config-file=${goan_config} &
3645}
3746
3847function custom(){
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function npm_init(){
3535
3636function npm_instance(){
3737 echo -e " \nRUN NPM GOACCESS"
38- tini -s -- /goaccess/goaccess --daemonize -- no-global-config --config-file=${goan_config}
38+ /goaccess/goaccess --no-global-config --config-file=${goan_config} &
3939}
4040
4141function npm_goaccess_config(){
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function npm_redirect_init(){
3535
3636function npm_redirect_instance(){
3737 echo -e " \nRUN NPM REDIRECT GOACCESS"
38- tini -s -- /goaccess/goaccess --daemonize -- no-global-config --config-file=${goan_config}
38+ /goaccess/goaccess --no-global-config --config-file=${goan_config} &
3939}
4040
4141function npm_redirect_goaccess_config(){
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function traefik_init(){
3535
3636function traefik_instance(){
3737 echo -e " \nRUN TRAEFIK GOACCESS"
38- tini -s -- /goaccess/goaccess --daemonize -- no-global-config --config-file=${goan_config}
38+ /goaccess/goaccess --no-global-config --config-file=${goan_config} &
3939}
4040
4141function traefik_goaccess_config(){
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ source $(dirname "$0")/logs/npm_redirection.sh
66source $( dirname " $0 " ) /logs/traefik.sh
77source $( dirname " $0 " ) /logs/custom.sh
88
9- goan_version=" GOAN v1.1.2 "
9+ goan_version=" GOAN v1.1.3 "
1010goan_log_path=" /opt/log"
1111
1212echo -e " \n${goan_version} \n"
@@ -24,13 +24,13 @@ tini -s -- nginx
2424
2525# BEGIN PROXY LOGS
2626if [[ -z " ${LOG_TYPE} " || " ${LOG_TYPE} " == " NPM" || " ${LOG_TYPE} " == " NPM+R" ]]; then
27- echo -e " \n\nNPM INSTANCE SETTING UP..."
28- npm
29-
3027 if [[ " ${LOG_TYPE} " == " NPM+R" ]]; then
3128 echo -e " \n\nNPM REDIRECT INSTANCE SETTING UP..."
3229 npm_redirect
3330 fi
31+
32+ echo -e " \n\nNPM INSTANCE SETTING UP..."
33+ npm
3434elif [[ " ${LOG_TYPE} " == " TRAEFIK" ]]; then
3535 traefik
3636elif [[ " ${LOG_TYPE} " == " CUSTOM" ]]; then
3939# END PROXY LOGS
4040
4141# Leave container running
42- tail -f /dev/null
42+ wait -n
You can’t perform that action at this time.
0 commit comments