Refactor python-dotenv installation in system preparation script

- Changed the installation method of the python-dotenv library from pip to apt for better package management.
- Updated logging to reflect the new installation approach, enhancing user awareness during setup.
This commit is contained in:
Yury Kossakovsky
2025-05-09 16:08:28 -06:00
parent 7de541a9cb
commit 9112b5eb2e

View File

@@ -16,11 +16,11 @@ log_info "Installing standard CLI tools..."
apt install -y \
htop git curl make unzip ufw fail2ban python3 psmisc whiptail \
build-essential ca-certificates gnupg lsb-release openssl \
debian-keyring debian-archive-keyring apt-transport-https python3-pip
debian-keyring debian-archive-keyring apt-transport-https
# Install python-dotenv
log_info "Installing python-dotenv library..."
pip3 install python-dotenv
# Install python-dotenv using apt
log_info "Installing python-dotenv library using apt..."
apt install -y python3-dotenv
# Configuring Firewall (UFW)
log_info "Configuring firewall (UFW)..."