Skip to content

Commit 40c81bb

Browse files
TeslaTesla
authored andcommitted
Update the hiddify panel installation to install from source.
1 parent e9e56f1 commit 40c81bb

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

hiddify-panel/install.sh

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,15 @@ fi
2121

2222
pip uninstall -y flask-babelex >/dev/null 2>&1
2323

24-
if [ "${MODE}" == "install-docker" ];then
25-
rm -rf /opt/hiddify-manager/hiddify-panel/src
26-
mkdir -p /opt/hiddify-manager/hiddify-panel/src
27-
git clone --depth 1 --branch main https://github.com/hiddify/hiddifypanel.git /opt/hiddify-manager/hiddify-panel/src
28-
HIDDIFY_PANLE_SOURCE_DIR=/opt/hiddify-manager/hiddify-panel/src
29-
fi
24+
rm -rf /opt/hiddify-manager/hiddify-panel/src
25+
mkdir -p /opt/hiddify-manager/hiddify-panel/src
26+
git clone --depth 1 --branch main https://github.com/hiddify/hiddifypanel.git /opt/hiddify-manager/hiddify-panel/src
27+
HIDDIFY_PANLE_SOURCE_DIR=/opt/hiddify-manager/hiddify-panel/src
3028

3129
# install/build hiddifypanel package
32-
if [ -n "$HIDDIFY_PANLE_SOURCE_DIR" ]; then
33-
echo "NOTICE: building hiddifypanel package from source..."
34-
echo "NOTICE: the source dir $HIDDIFY_PANLE_SOURCE_DIR"
35-
/opt/hiddify-manager/.venv/bin/pip install -e "$HIDDIFY_PANLE_SOURCE_DIR"
36-
else
37-
echo "Installing hiddifypanel with the pip"
38-
python -c "import hiddifypanel" || pip install -U hiddifypanel
39-
fi
30+
echo "NOTICE: building hiddifypanel package from source..."
31+
echo "NOTICE: the source dir $HIDDIFY_PANLE_SOURCE_DIR"
32+
/opt/hiddify-manager/.venv/bin/pip install -e "$HIDDIFY_PANLE_SOURCE_DIR"
4033

4134

4235
ln -sf $(which uwsgi) /usr/local/bin/uwsgi >/dev/null 2>&1

0 commit comments

Comments
 (0)