Skip to content

Commit

Permalink
fix: not installed pymysql
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Sep 15, 2023
1 parent 2a24a2b commit a9f8825
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hiddify-panel/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ chown -R hiddify-panel:hiddify-panel . >/dev/null 2>&1
for req in pip3 uwsgi python3 hiddifypanel lastversion jq; do
which $req >/dev/null 2>&1
if [[ "$?" != 0 ]]; then
install_package add-apt-repository
install_package software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
install_package python3-pip jq python3-dev
pip3 install pip
Expand All @@ -20,6 +20,8 @@ for req in pip3 uwsgi python3 hiddifypanel lastversion jq; do
fi
done

python3 -c "import pymysql" || pip install pymysql

sed -i '/SQLALCHEMY_DATABASE_URI/d' app.cfg
MYSQL_PASS=$(cat ../other/mysql/mysql_pass)
echo "SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://hiddifypanel:$MYSQL_PASS@127.0.0.1/hiddifypanel?charset=utf8mb4'" >>app.cfg
Expand Down

0 comments on commit a9f8825

Please sign in to comment.