From 4ac2fa3772e938428bbb8665fe3a0b7f03667b8a Mon Sep 17 00:00:00 2001 From: soup-bowl Date: Tue, 31 Jan 2023 20:11:20 +0000 Subject: [PATCH] Synced chanes (even tho it --- beta/alpine-beta/Dockerfile | 1 + .../alpine-beta/defaults/SQLiteStandalone.ini | 39 +++++++++++++++++++ beta/alpine-beta/docker-entrypoint.sh | 5 +++ 3 files changed, 45 insertions(+) create mode 100644 beta/alpine-beta/defaults/SQLiteStandalone.ini diff --git a/beta/alpine-beta/Dockerfile b/beta/alpine-beta/Dockerfile index 41e083a..0dbcfb9 100644 --- a/beta/alpine-beta/Dockerfile +++ b/beta/alpine-beta/Dockerfile @@ -14,6 +14,7 @@ RUN mkdir /opt/opensim-tmp \ && curl "http://opensimulator.org/dist/opensim-${OPENSIM_VERSION}.tar.gz" | tar xzf - -C /opt/opensim-tmp \ && rm /opt/opensim-tmp/opensim*/bin/OpenSim.ini \ && rm /opt/opensim-tmp/opensim*/bin/config-include/StandaloneCommon.ini \ + && rm /opt/opensim-tmp/opensim*/bin/config-include/storage/SQLiteStandalone.ini \ && mkdir /opt/opensim \ && mv /opt/opensim-tmp/opensim*/* /opt/opensim diff --git a/beta/alpine-beta/defaults/SQLiteStandalone.ini b/beta/alpine-beta/defaults/SQLiteStandalone.ini new file mode 100644 index 0000000..200a9c9 --- /dev/null +++ b/beta/alpine-beta/defaults/SQLiteStandalone.ini @@ -0,0 +1,39 @@ +; These are the initialization settings for running OpenSim Standalone with an SQLite database + +[DatabaseService] + StorageProvider = "OpenSim.Data.SQLite.dll" + ConnectionString = "URI=file:sqlite-database/OpenSim.db,version=3,UseUTF16Encoding=True" + +[AssetService] + ConnectionString = "URI=file:sqlite-database/Asset.db,version=3" + +; The HGAssetService section controls the connection given to the AssetService in a Hypergrid configuration. +; This has to be separate from [AssetService] because the Hypergrid facing connector uses [HGAssetService] for its config data instead. +; However, the internal asset service will still use the [AssetService] section. +; Therefore, you will almost certainly want the ConnectionString in [HGAssetService] to be the same as in [AssetService] +; so that they both access the same database. +; This issue does not apply to normal MySQL/MSSQL configurations, since by default they use the settings in [DatabaseService] and +; do not have separate connection strings for different services. +[HGAssetService] + ConnectionString = "URI=file:sqlite-database/Asset.db,version=3" + +[InventoryService] + ;ConnectionString = "URI=file:inventory.db,version=3" + ; if you have a legacy inventory store use the connection string below + ConnectionString = "URI=file:sqlite-database/inventory.db,version=3,UseUTF16Encoding=True" + +[AvatarService] + ConnectionString = "URI=file:sqlite-database/avatars.db,version=3" + +[AuthenticationService] + ConnectionString = "URI=file:sqlite-database/auth.db,version=3" + +[UserAccountService] + ConnectionString = "URI=file:sqlite-database/userprofiles.db,version=3" + +[GridUserService] + ConnectionString = "URI=file:sqlite-database/griduser.db,version=3" + +[FriendsService] + ConnectionString = "URI=file:sqlite-database/friends.db,version=3" + diff --git a/beta/alpine-beta/docker-entrypoint.sh b/beta/alpine-beta/docker-entrypoint.sh index 6e3e555..2f2ddfa 100755 --- a/beta/alpine-beta/docker-entrypoint.sh +++ b/beta/alpine-beta/docker-entrypoint.sh @@ -59,4 +59,9 @@ if [ `find Regions -maxdepth 1 -name '*.ini' | wc -l` -eq 0 ]; then ExternalHostName = localhost" >> Regions/Regions.ini fi +if [ ! -e config-include/storage/SQLiteStandalone.ini ]; then + cp defaults/SQLiteStandalone.ini config-include/storage/SQLiteStandalone.ini + mkdir -p sqlite-database +fi + exec "$@"