Skip to content

Commit

Permalink
layers/meta-opentrons: various fixes for system server oem mode (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 authored Apr 11, 2024
1 parent cf8f15b commit 35a449b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ trap "gstd-client pipeline_delete p; exit" SIGHUP SIGINT SIGTERM
system_env_file="/var/lib/opentrons-system-server/system.env"
if [ -f $system_env_file ]; then
echo "Found system environment file: ${system_env_file}"
export $(grep -v '^#' $system_env_file | xargs)
export $(grep -v '^#' $system_env_file | xargs | tr -d \'\")
fi

oem_mode_enabled=$OT_SYSTEM_SERVER_oem_mode_enabled
oem_mode_splash_custom=$OT_SYSTEM_SERVER_oem_mode_splash_custom
oem_mode_splash_default="/usr/share/opentrons/oem_mode_default.png"
opentrons_default_splash="/usr/share/opentrons/loading.mp4"
splash_screen_path="${opentrons_default_splash}"
PATTERN='^(True|true|1)$'
PATTERN='(True|true|1)'
if [[ "${oem_mode_enabled}" =~ $PATTERN ]]; then
echo "OEM Mode is Enabled"
if [ -f "${oem_mode_splash_custom}" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ExecStart=python3 -m system_server
StateDirectory=opentrons-system-server
Environment=PYTHONPATH=/opt/opentrons-system-server:/usr/lib/python3.10/site-packages
Environment=OT_SYSTEM_SERVER_persistence_directory=/var/lib/opentrons-system-server
Environment=OT_SYSTEM_SERVER_dot_env_path=/var/lib/opentrons-system-server/system.env
Restart=on-failure
TimeoutStartSec=3min

Expand Down

0 comments on commit 35a449b

Please sign in to comment.