mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-10-26 07:46:35 +01:00
Fix AlmaLinux 8 installation: Add python-dotenv to requirements (v2.4.4)
- Install python-dotenv in virtual environment during CyberPanel setup - Fixes Django's inability to load .env file on AlmaLinux 8 - Resolves "Access denied for user 'cyberpanel'@'localhost'" errors - Added to all installation paths (normal, DEV, and after_install) This ensures Django can properly load database credentials from .env file on AlmaLinux 8 systems where python-dotenv was missing.
This commit is contained in:
@@ -901,6 +901,8 @@ source /usr/local/CyberPanel/bin/activate
|
||||
rm -rf requirements.txt
|
||||
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/1.8.0/requirments.txt
|
||||
pip install --ignore-installed -r requirements.txt
|
||||
# Install python-dotenv for loading .env file (critical for AlmaLinux 8)
|
||||
pip install python-dotenv
|
||||
fi
|
||||
|
||||
if [[ $DEV == "ON" ]] ; then
|
||||
@@ -911,6 +913,8 @@ if [[ $DEV == "ON" ]] ; then
|
||||
source /usr/local/CyberPanel/bin/activate
|
||||
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
||||
pip3.6 install --ignore-installed -r requirements.txt
|
||||
# Install python-dotenv for loading .env file (critical for AlmaLinux 8)
|
||||
pip3.6 install python-dotenv
|
||||
fi
|
||||
|
||||
if [ -f requirements.txt ] && [ -d cyberpanel ] ; then
|
||||
@@ -965,6 +969,8 @@ python3.6 -m venv /usr/local/CyberCP
|
||||
source /usr/local/CyberCP/bin/activate
|
||||
wget -O requirements.txt https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
||||
pip3.6 install --ignore-installed -r requirements.txt
|
||||
# Install python-dotenv for loading .env file (critical for AlmaLinux 8)
|
||||
pip3.6 install python-dotenv
|
||||
systemctl restart lscpd
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user