Skip to content

Commit

Permalink
Allow defining of the physics engine via envs.
Browse files Browse the repository at this point in the history
  • Loading branch information
soup-bowl committed Nov 12, 2023
1 parent e8f157b commit 576521a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beta/alpine-beta/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if [ ! -e OpenSim.ini ]; then
echo >&2 "INFO: No OpenSim configuration found, pulling one together."
cp defaults/OpenSim.ini OpenSim.ini

if [ -n "${PHYSICS_ENGINE}" ]; then
echo -e "\n[Startup]
physics = ${PHYSICS_ENGINE:-BulletSim}" >> OpenSim.ini
fi

echo -e "\n[Estates]
DefaultEstateName = ${ESTATE_NAME:-Default Estate}
DefaultEstateOwnerName = ${ESTATE_OWNER_NAME:-Foo Bar}
Expand Down
5 changes: 5 additions & 0 deletions beta/source/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if [ ! -e OpenSim.ini ]; then
echo >&2 "INFO: No OpenSim configuration found, pulling one together."
cp defaults/OpenSim.ini OpenSim.ini

if [ -n "${PHYSICS_ENGINE}" ]; then
echo -e "\n[Startup]
physics = ${PHYSICS_ENGINE:-BulletSim}" >> OpenSim.ini
fi

echo -e "\n[Estates]
DefaultEstateName = ${ESTATE_NAME:-Default Estate}
DefaultEstateOwnerName = ${ESTATE_OWNER_NAME:-Foo Bar}
Expand Down
5 changes: 5 additions & 0 deletions build/latest/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if [ ! -e OpenSim.ini ]; then
echo >&2 "INFO: No OpenSim configuration found, pulling one together."
cp defaults/OpenSim.ini OpenSim.ini

if [ -n "${PHYSICS_ENGINE}" ]; then
echo -e "\n[Startup]
physics = ${PHYSICS_ENGINE:-BulletSim}" >> OpenSim.ini
fi

echo -e "\n[Estates]
DefaultEstateName = ${ESTATE_NAME:-Default Estate}
DefaultEstateOwnerName = ${ESTATE_OWNER_NAME:-Foo Bar}
Expand Down

0 comments on commit 576521a

Please sign in to comment.