Skip to content

Commit

Permalink
Remove unused config attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Aug 12, 2024
1 parent cb41a85 commit dc1bf3d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
12 changes: 0 additions & 12 deletions src/MCPClient/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,12 @@ This is the full list of variables supported by MCPClient:
- **Type:** `string`
- **Default:** `/var/archivematica/sharedDirectory/watchedDirectories/`

- **`ARCHIVEMATICA_MCPCLIENT_MCPCLIENT_CLIENTSCRIPTSDIRECTORY`**:
- **Description:** location of the client scripts directory.
- **Config file example:** `MCPClient.clientScriptsDirectory`
- **Type:** `string`
- **Default:** `/usr/lib/archivematica/MCPClient/clientScripts/`

- **`ARCHIVEMATICA_MCPCLIENT_MCPCLIENT_CLIENTASSETSDIRECTORY`**:
- **Description:** location of the client assets directory.
- **Config file example:** `MCPClient.clientAssetsDirectory`
- **Type:** `string`
- **Default:** `/usr/lib/archivematica/MCPClient/assets/`

- **`ARCHIVEMATICA_MCPCLIENT_MCPCLIENT_LOADSUPPORTEDCOMMANDSSPECIAL`**:
- **Description:** enables loading special modules.
- **Config file example:** `MCPClient.LoadSupportedCommandsSpecial`
- **Type:** `boolean`
- **Default:** `true`

- **`ARCHIVEMATICA_MCPCLIENT_MCPCLIENT_MCPARCHIVEMATICASERVER`**:
- **Description:** address of the Gearman server.
- **Config file example:** `MCPClient.MCPArchivematicaServer`
Expand Down
1 change: 0 additions & 1 deletion src/MCPClient/install/clientConfig.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ watchDirectoryPath = /var/archivematica/sharedDirectory/watchedDirectories/
processingDirectory = /var/archivematica/sharedDirectory/currentlyProcessing/
rejectedDirectory = /var/archivematica/sharedDirectory/rejected/
archivematicaClientModules = /usr/lib/archivematica/MCPClient/archivematicaClientModules
clientScriptsDirectory = /usr/lib/archivematica/MCPClient/clientScripts/
clientAssetsDirectory = /usr/lib/archivematica/MCPClient/assets/
elasticsearchServer = localhost:9200
elasticsearchTimeout = 10
Expand Down
1 change: 0 additions & 1 deletion src/MCPClient/lib/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def replace_task_arguments(
) -> str:
replacements = {
r"%sharedPath%": settings.SHARED_DIRECTORY,
r"%clientScriptsDirectory%": settings.CLIENT_SCRIPTS_DIRECTORY,
r"%clientAssetsDirectory%": settings.CLIENT_ASSETS_DIRECTORY,
r"%date%": timezone.now().isoformat(),
r"%taskUUID%": task_uuid,
Expand Down
7 changes: 0 additions & 7 deletions src/MCPClient/lib/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ def workers(config, section):
"option": "watchDirectoryPath",
"type": "string",
},
"client_scripts_directory": {
"section": "MCPClient",
"option": "clientScriptsDirectory",
"type": "string",
},
"client_assets_directory": {
"section": "MCPClient",
"option": "clientAssetsDirectory",
Expand Down Expand Up @@ -223,7 +218,6 @@ def workers(config, section):
processingDirectory = /var/archivematica/sharedDirectory/currentlyProcessing/
rejectedDirectory = /var/archivematica/sharedDirectory/rejected/
archivematicaClientModules = /usr/lib/archivematica/MCPClient/archivematicaClientModules
clientScriptsDirectory = /usr/lib/archivematica/MCPClient/clientScripts/
clientAssetsDirectory = /usr/lib/archivematica/MCPClient/assets/
elasticsearchServer = localhost:9200
elasticsearchTimeout = 10
Expand Down Expand Up @@ -361,7 +355,6 @@ def workers(config, section):
PROCESSING_DIRECTORY = config.get("processing_directory")
REJECTED_DIRECTORY = config.get("rejected_directory")
WATCH_DIRECTORY = config.get("watch_directory")
CLIENT_SCRIPTS_DIRECTORY = config.get("client_scripts_directory")
CLIENT_ASSETS_DIRECTORY = config.get("client_assets_directory")
GEARMAN_SERVER = config.get("gearman_server")
CLIENT_MODULES_FILE = config.get("client_modules_file")
Expand Down

0 comments on commit dc1bf3d

Please sign in to comment.