fix: unix user perms
Build and Publish Container / Publish Linux container (push) Successful in 5m32s
Build and Publish Container / Publish Linux container (push) Successful in 5m32s
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user