Skip to content

Commit

Permalink
Fix start.bash under sudo
Browse files Browse the repository at this point in the history
Preserve environment variables, especially PATH.

Tested on Raspberry Pi OS 64bit v2023-05-03 (Debian 11 + kernel v6.1)
  • Loading branch information
moshiba authored Sep 26, 2023
1 parent bea5c2c commit 24fb566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/start.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

sudo streamlit run Device_List.py --server.port 33761 --browser.gatherUsageStats false --server.headless true --server.baseUrlPath "inspector_dashboard"
sudo -E env PATH=$PATH streamlit run Device_List.py --server.port 33761 --browser.gatherUsageStats false --server.headless true --server.baseUrlPath "inspector_dashboard"

0 comments on commit 24fb566

Please sign in to comment.