From f6bda80b82ba0f462e162968667974ff644359f0 Mon Sep 17 00:00:00 2001 From: fanyx Date: Mon, 27 Jun 2022 09:50:48 +0200 Subject: [PATCH] force take ownership of runtime directories --- services.d/xaseco/run | 4 +++- tmserver/entrypoint.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/services.d/xaseco/run b/services.d/xaseco/run index 9408210..2f9e1a7 100755 --- a/services.d/xaseco/run +++ b/services.d/xaseco/run @@ -2,7 +2,9 @@ set -e -[[ "$(id -u)" == 0 ]] && s6-setuidgid trackmania "$0" +[[ "$(id -u)" == 0 ]] && \ + chown -R trackmania:trackmania /var/lib/xaseco && \ + s6-setuidgid trackmania "$0" cd /var/lib/xaseco diff --git a/tmserver/entrypoint.sh b/tmserver/entrypoint.sh index 1d96ab2..54d74c6 100755 --- a/tmserver/entrypoint.sh +++ b/tmserver/entrypoint.sh @@ -2,7 +2,9 @@ set -e -[[ "$(id -u)" == 0 ]] && s6-setuidgid trackmania "$0" +[[ "$(id -u)" == 0 ]] && \ + chown -R trackmania:trackmania /var/lib/tmserver && \ + s6-setuidgid trackmania "$0" cd /var/lib/tmserver