Commit 6ab0b65e authored by PermissionDenied7335's avatar PermissionDenied7335

Added an option not to enable venv

parent 5ef669de
...@@ -4,12 +4,6 @@ ...@@ -4,12 +4,6 @@
# change the variables in webui-user.sh instead # # 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 ) SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
...@@ -28,6 +22,12 @@ then ...@@ -28,6 +22,12 @@ then
source "$SCRIPT_DIR"/webui-user.sh source "$SCRIPT_DIR"/webui-user.sh
fi fi
# If $venv_dir is "-", then disable venv support
use_venv=1
if [[ $venv_dir == "-" ]]; then
use_venv=0
fi
# Set defaults # Set defaults
# Install directory without trailing slash # Install directory without trailing slash
if [[ -z "${install_dir}" ]] if [[ -z "${install_dir}" ]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment