aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrodokk <brodokk@brodokk.space>2021-05-30 14:47:31 +0200
committerbrodokk <brodokk@brodokk.space>2021-05-30 14:47:31 +0200
commit71ff8ecdff63aa842a5eccbb3da5efc5e568c406 (patch)
tree1e4affcad4df507b1e321fa3abf24077186261c1
parentb4334d47113cd96e76c33e5bb442d3e077f768ea (diff)
downloadneosvr_docker-71ff8ecdff63aa842a5eccbb3da5efc5e568c406.tar.xz
neosvr_docker-71ff8ecdff63aa842a5eccbb3da5efc5e568c406.zip
Add logs saved externally
-rw-r--r--docker-compose.yml1
-rw-r--r--entrypoint.sh3
-rw-r--r--logs/.keep0
3 files changed, 3 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 08393d6..2811d3b 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -12,6 +12,7 @@ services:
BETA_KEY: ***
volumes:
- ./steam:/steam
+ - ./logs:/logs
- ./config:/steam/740250/Config
stdin_open: true
tty: true
diff --git a/entrypoint.sh b/entrypoint.sh
index 417fa14..c5a49de 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -31,6 +31,7 @@ case "$arguments" in
echo "Cleaning old stuff..."
find /steam/${LAUNCH_APP}/Data/Assets -atime +7 -delete
find /steam/${LAUNCH_APP}/Data/Cache -atime +7 -delete
+ find /Logs -atime +30 -delete
echo "Run NeosVR headless client..."
- cd /steam/${LAUNCH_APP}/ && mono Neos.exe;;
+ cd /steam/${LAUNCH_APP}/ && mono Neos.exe -l /logs;;
esac
diff --git a/logs/.keep b/logs/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/logs/.keep