Revert most launch.py changes, add mac user script

Adds an addition file to read environment variables from when the webui.sh is run from macOS.
This commit is contained in:
brkirch
2022-12-03 02:28:53 -05:00
parent bef36597cc
commit 5ec8981df4
3 changed files with 22 additions and 18 deletions

View File

@@ -4,6 +4,14 @@
# change the variables in webui-user.sh instead #
#################################################
# If run from macOS, load defaults from webui-macos-env.sh
if [[ "$OSTYPE" == "darwin"* ]]; then
if [[ -f webui-macos-env.sh ]]
then
source ./webui-macos-env.sh
fi
fi
# Read variables from webui-user.sh
# shellcheck source=/dev/null
if [[ -f webui-user.sh ]]