aboutsummaryrefslogtreecommitdiff
path: root/webui.sh
diff options
context:
space:
mode:
authorPermissionDenied7335 <grade6_wty@163.com>2023-10-02 15:43:59 +0800
committerPermissionDenied7335 <grade6_wty@163.com>2023-10-02 15:43:59 +0800
commit6ab0b65ed15730f590a3e530f00a2047f582b488 (patch)
treec9d8bb7b8e05d4201237b5bc671501c829fa08bf /webui.sh
parent5ef669de080814067961f28357256e8fe27544f4 (diff)
Added an option not to enable venv
Diffstat (limited to 'webui.sh')
-rwxr-xr-xwebui.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/webui.sh b/webui.sh
index 3d0f87ee..f3621903 100755
--- a/webui.sh
+++ b/webui.sh
@@ -4,12 +4,6 @@
# change the variables in webui-user.sh instead #
#################################################
-
-use_venv=1
-if [[ $venv_dir == "-" ]]; then
- use_venv=0
-fi
-
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
@@ -28,6 +22,12 @@ then
source "$SCRIPT_DIR"/webui-user.sh
fi
+# If $venv_dir is "-", then disable venv support
+use_venv=1
+if [[ $venv_dir == "-" ]]; then
+ use_venv=0
+fi
+
# Set defaults
# Install directory without trailing slash
if [[ -z "${install_dir}" ]]