Allow instances to add prefixes by hand

This commit adds a method to allow instances to add specific prefixes to
the global uri resolver.
This commit is contained in:
Tom Wiesing 2022-08-01 17:07:08 +02:00
parent 210668a49b
commit cb34e1144f
No known key found for this signature in database
3 changed files with 17 additions and 0 deletions

View file

@ -21,6 +21,12 @@ for slug in $(sql_bookkeep_list); do
read -r INSTANCE_BASE_DIR MYSQL_DATABASE MYSQL_USER GRAPHDB_REPO GRAPHDB_USER GRAPHDB_PASSWORD <<< "$(sql_bookkeep_load "${slug}" "filesystem_base,sql_database,sql_user,graphdb_repository,graphdb_user,graphdb_password" | tail -n +2)"
pushd "$INSTANCE_BASE_DIR" > /dev/null
INSTANCE_PREFIX_FILE="$(compute_instance_prefixfile "$INSTANCE_BASE_DIR" )"
if [ -f "$INSTANCE_PREFIX_FILE" ]; then
cat "$INSTANCE_PREFIX_FILE" | tee -a "$DEPLOY_PREFIX_CONFIG"
fi
docker-compose exec barrel /user_shell.sh -c "drush php:script /wisskiutils/list_uri_prefixes.php" | tee -a "$DEPLOY_PREFIX_CONFIG"
popd > /dev/null
done