Fix OpenBMC JsonSchemas installation
This fixes the missing Oem/OpenBMC JsonSchema file installation.
Tested:
- Check JsonSchemas to have the enabled OpenBMC schemas
```
curl -k -X GET https::/${bmc}/redfish/v1/JsonSchemas/OpenBMCAccountService
curl -k -X GET https::/${bmc}/redfish/v1/JsonSchemas/OpenBMCManager
curl -k -X GET https::/${bmc}/redfish/v1/JsonSchemas/OpenBMCComputerSystem
```
Change-Id: Ia13b5c5d1626ee5648ddce5cd62375c8e3e09e75
Signed-off-by: Myung Bae <myungbae@us.ibm.com>
diff --git a/redfish-core/schema/dmtf/installed/OpenBMCAccountService_v1.xml b/redfish-core/schema/dmtf/installed/OpenBMCAccountService_v1.xml
deleted file mode 120000
index 8a783f8..0000000
--- a/redfish-core/schema/dmtf/installed/OpenBMCAccountService_v1.xml
+++ /dev/null
@@ -1 +0,0 @@
-../../../../redfish-core/schema/oem/openbmc/csdl/OpenBMCAccountService_v1.xml
\ No newline at end of file
diff --git a/redfish-core/schema/dmtf/installed/OpenBMCManager_v1.xml b/redfish-core/schema/dmtf/installed/OpenBMCManager_v1.xml
deleted file mode 120000
index 9cba5cc..0000000
--- a/redfish-core/schema/dmtf/installed/OpenBMCManager_v1.xml
+++ /dev/null
@@ -1 +0,0 @@
-../../../../redfish-core/schema/oem/openbmc/csdl/OpenBMCManager_v1.xml
\ No newline at end of file
diff --git a/redfish-core/schema/oem/openbmc/meson.build b/redfish-core/schema/oem/openbmc/meson.build
index cf5808a..95702ce 100644
--- a/redfish-core/schema/oem/openbmc/meson.build
+++ b/redfish-core/schema/oem/openbmc/meson.build
@@ -10,13 +10,13 @@
if get_option(option_key).allowed()
install_data(
'csdl/@0@_v1.xml'.format(schema),
- install_dir: '/var/www/redfish/v1/schema',
+ install_dir: 'share/www/redfish/v1/schema',
follow_symlinks: true,
)
install_data(
- 'json-schema/@0@.json'.format(schema),
- install_dir: '/var/www/redfish/v1/JsonSchema/@0@'.format(schema),
+ 'json-schema/@0@.v1_0_0.json'.format(schema),
+ install_dir: 'share/www/redfish/v1/JsonSchemas',
follow_symlinks: true,
)
endif