CooperGerman
2024-04-26 15:32:47 +02:00
parent c7f02f52e5
commit a6774dd054

View File

@@ -79,33 +79,33 @@ packages=""
if ! python3 -c 'import venv, ensurepip' &>/dev/null; then if ! python3 -c 'import venv, ensurepip' &>/dev/null; then
echo -e "${ORANGE}Python venv module is not accessible. Installing venv...${NC}" echo -e "${ORANGE}Python venv module is not accessible. Installing venv...${NC}"
if [[ "$pkg_manager" == "apt-get" ]]; then if [[ "$pkg_manager" == "apt-get" ]]; then
packages+="python3-venv" packages+=" python3-venv"
elif [[ "$pkg_manager" == "pacman" ]]; then elif [[ "$pkg_manager" == "pacman" ]]; then
packages+="python-virtualenv" packages+=" python-virtualenv"
fi fi
fi fi
if ! command -v pip3 &>/dev/null; then if ! command -v pip3 &>/dev/null; then
echo -e "${ORANGE}Python pip is not installed. Installing pip...${NC}" echo -e "${ORANGE}Python pip is not installed. Installing pip...${NC}"
if [[ "$pkg_manager" == "apt-get" ]]; then if [[ "$pkg_manager" == "apt-get" ]]; then
packages+="python3-pip" packages+=" python3-pip"
elif [[ "$pkg_manager" == "pacman" ]]; then elif [[ "$pkg_manager" == "pacman" ]]; then
packages+="python-pip" packages+=" python-pip"
fi fi
fi fi
if ! command -v pg_config &>/dev/null; then if ! command -v pg_config &>/dev/null; then
echo -e "${ORANGE}pg_config is not available. Installing libpq-dev...${NC}" echo -e "${ORANGE}pg_config is not available. Installing libpq-dev...${NC}"
if [[ "$pkg_manager" == "apt-get" ]]; then if [[ "$pkg_manager" == "apt-get" ]]; then
packages+="libpq-dev" packages+=" libpq-dev"
elif [[ "$pkg_manager" == "pacman" ]]; then elif [[ "$pkg_manager" == "pacman" ]]; then
packages+="postgresql-libs" packages+=" postgresql-libs"
fi fi
fi fi
if ! command -v unzip &>/dev/null; then if ! command -v unzip &>/dev/null; then
echo -e "${ORANGE}unzip is not available. Installing unzip...${NC}" echo -e "${ORANGE}unzip is not available. Installing unzip...${NC}"
packages+="unzip" packages+=" unzip"
fi fi
if [[ -n "$packages" ]]; then if [[ -n "$packages" ]]; then