fix: unix user perms
Build and Publish Container / Publish Linux container (push) Successful in 5m32s

This commit is contained in:
2026-10-05 16:06:24 -04:00
parent b2df81130e
commit 79e953bbe7
3 changed files with 10 additions and 9 deletions
+4 -5
View File
@@ -3,17 +3,16 @@ set -eu
prepare_volume() {
path="$1"
marker="$path/.progression-volume-ready"
marker="$path/.progression-root-volume-ready"
mkdir -p "$path"
if [ ! -e "$marker" ]; then
echo "Preparing persistent volume permissions: $path"
chown -R progression:progression "$path"
echo "Preparing persistent volume for the container user: $path"
chown -R 0:0 "$path"
touch "$marker"
chown progression:progression "$marker"
fi
}
prepare_volume /srv/progression/.data
prepare_volume /opt/steamcmd/steamapps
exec gosu progression "$@"
exec "$@"