56c9f0a910
- Update Redfish spec and schema to version 1.0.0 - Update Redfish simulator to version 0.99.0a - Comply with Redfish 1.0.0 by changing remaining refs from /rest/v1 to /redfish/v1 - Adds a README to explain how to use the Docker container to launch the DMTF Redfish mockup in order to test without hardware - Update spec file for local usage
28 lines
548 B
Bash
28 lines
548 B
Bash
#!/bin/bash
|
|
|
|
function start_apache {
|
|
echo "Launching apache2 in foreground with /usr/sbin/apache2ctl -DFOREGROUND -k start"
|
|
/usr/sbin/apache2ctl -DFOREGROUND -k start
|
|
}
|
|
|
|
function stop_apache {
|
|
echo "Stopping apache2"
|
|
/usr/sbin/apache2ctl stop
|
|
}
|
|
|
|
# Trap to have a clean exit
|
|
trap stop_apache HUP INT QUIT KILL TERM
|
|
|
|
|
|
# Main
|
|
cd /var/www/html
|
|
unzip -q -o /tmp/DSP2043_0.99.0a.zip
|
|
chmod 755 DSP2043_0.99.0a
|
|
ln -sf DSP2043_0.99.0a redfish
|
|
cd redfish
|
|
ln -sf . v1
|
|
cd ..
|
|
ip a
|
|
#sed -i -e 's/Listen 80/Listen 8000/' /etc/apache2/ports.conf
|
|
start_apache
|