Optional VectorRS is gone
This commit is contained in:
@@ -427,8 +427,6 @@ async function configureService(id, data, auditSource) {
|
||||
const servicesConfig = await getConfig();
|
||||
needsRebuild = servicesConfig[name]?.recoveryMode != data.recoveryMode; // intentional != since 'recoveryMode' may or may not be there
|
||||
|
||||
if (name === 'postgresql' && (!servicesConfig[name] || data.useVectorRsExtension !== servicesConfig[name].useVectorRsExtension)) needsRebuild = true;
|
||||
|
||||
servicesConfig[name] = data;
|
||||
|
||||
await settings.setJson(settings.SERVICES_CONFIG_KEY, servicesConfig);
|
||||
@@ -1362,7 +1360,6 @@ async function startPostgresql(existingInfra) {
|
||||
const serviceConfig = await getServiceConfig('postgresql');
|
||||
const readOnly = !serviceConfig.recoveryMode ? '--read-only' : '';
|
||||
const cmd = serviceConfig.recoveryMode ? '/bin/bash -c \'echo "Debug mode. Sleeping" && sleep infinity\'' : '';
|
||||
const useVectorRsExtension = !!serviceConfig.useVectorRsExtension;
|
||||
|
||||
// memory options are applied dynamically. import requires all the memory we can get
|
||||
const runCmd = `docker run --restart=always -d --name=postgresql \
|
||||
@@ -1379,7 +1376,6 @@ async function startPostgresql(existingInfra) {
|
||||
--shm-size=128M \
|
||||
-e CLOUDRON_POSTGRESQL_ROOT_PASSWORD=${rootPassword} \
|
||||
-e CLOUDRON_POSTGRESQL_TOKEN=${cloudronToken} \
|
||||
-e CLOUDRON_POSTGRESQL_USE_VECTOR_RS=${ useVectorRsExtension ? 'true': '' } \
|
||||
-v ${dataDir}/postgresql:/var/lib/postgresql \
|
||||
--label isCloudronManaged=true \
|
||||
${readOnly} -v /tmp -v /run ${image} ${cmd}`;
|
||||
|
||||
Reference in New Issue
Block a user