mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-22 16:33:17 +00:00
0d95890887
- Display the pretty hostname as system name in header - Move IP and hostname down to the footer - New endpoint for setting the pretty hostname, plus form field in the Web UI - (unrelated) Use platform.uname() instead of shell uname - (unrelated) Better logic for fetching the Mac HD Drivers zip file in easyinstall.sh
23 lines
613 B
Bash
23 lines
613 B
Bash
#!/usr/bin/env bash
|
|
|
|
if ! [[ -f "/home/pi/RASCSI/python/common/src/rascsi_interface_pb2.py" ]]; then
|
|
# Build rascsi_interface_pb2.py with the protobuf compiler
|
|
protoc \
|
|
-I=/home/pi/RASCSI/src/raspberrypi \
|
|
--python_out=/home/pi/RASCSI/python/common/src \
|
|
rascsi_interface.proto
|
|
fi
|
|
|
|
# Start Nginx service
|
|
nginx
|
|
|
|
# Use mock commands
|
|
export PATH="/home/pi/RASCSI/python/web/mock/bin:$PATH"
|
|
|
|
# Pass args to web UI start script
|
|
if [[ $RASCSI_PASSWORD ]]; then
|
|
/home/pi/RASCSI/python/web/start.sh "$@" --password=$RASCSI_PASSWORD
|
|
else
|
|
/home/pi/RASCSI/python/web/start.sh "$@"
|
|
fi
|