File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 11woudc-api (0.11.1) jammy; urgency=medium
22
33 * Updated openapi document that was causing refererce errors from incorrect paths/URLs
4+ * Updated debian/postinst to adjust schema path/URLs in openapi document per deployment
45 * Removed old properties from openapi document
56 * Set additionalProperties to false, which was causing errors by default in Swagger UI try it out
67 * Fixed provider type to record for discovery_metadata
Original file line number Diff line number Diff line change 22
33set -e
44
5+ # setup default vars
56USERNAME=" woudcuser"
67GROUP=" www-data"
8+ WOUDC_API_URL=" https://api.woudc.org"
79
8- chown -R $USERNAME .$GROUP /opt/woudc-api
10+ # Attempt to read in env defined specifics
11+ if [ -f /home/$USERNAME /.profile ]; then
12+ . /home/$USERNAME /.profile
13+ else
14+ echo " Warning: Profile not found for user $USERNAME " >&2
15+ fi
16+
17+ chown -R $USERNAME :$GROUP /opt/woudc-api
18+
19+ # point schema URLs to correct domain in openapi doc
20+ sed -i " s#https://api.woudc.org#${WOUDC_API_URL} #" /opt/woudc-api/conf/woudc-api-openapi.yml
You can’t perform that action at this time.
0 commit comments