Commit 89aca4a3 authored by Carlo Landmeter's avatar Carlo Landmeter

change redirect for docker logs

parent 8a52473a
Pipeline #2567 passed with stages
in 2 minutes and 6 seconds
......@@ -3,14 +3,14 @@ services:
mirrors:
image: alpinelinux/update-mirrors
init: true
tty: true
build: .
restart: always
volumes:
- "./ssh:/root/.ssh"
- "./config.lua:/usr/share/alpine-mirror-status/config.lua"
- "htdocs:/var/www/localhost/htdocs"
httpd:
image: alpinelinux/darkhttpd
restart: always
user: 1000:1000
ports:
- 8080:8080
......
......@@ -4,7 +4,7 @@ BASEDIR=/usr/share/alpine-mirror-status
MIRRORDIR=/var/lib/mirrors
WEBDIR=/var/www/localhost/htdocs
exec > $(tty) 2>&1
exec > /proc/1/fd/1 2>&1
if [ -d "$MIRRORDIR" ]; then
cd "$MIRRORDIR" && git pull
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment