This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
sc-portal/smf/run.sh
Marsell Kukuljevic 1ed6c05011 Add support for /rates/packages.json and /rates/images.json. These files are
served up from the rates/ directory, although in production the current in-repo
files are substituted with JSON pulled in from the VM's internal_metadata
configuration.
2021-04-27 00:03:21 +02:00

11 lines
298 B
Bash
Executable File

#!/bin/sh
cd /opt/spearhead/portal
# first extract the package and image rates from VM metadata
/usr/sbin/mdata-get sc:image_subscription_rates > rates/images.json
/usr/sbin/mdata-get sc:package_rates > rates/packages.json
# start up our server
/opt/local/bin/node bin/server.js cfg/prod.json &