mirror of
https://github.com/ShaYmez/hblink3-docker-install.git
synced 2025-12-22 21:49:50 +13:00
Fix indentation consistency in pip installation section
Co-authored-by: ShaYmez <76499782+ShaYmez@users.noreply.github.com>
This commit is contained in:
parent
b685e1df1a
commit
f7e9ef474f
@ -262,38 +262,38 @@ pip_install() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Installing Python dependencies..."
|
echo "Installing Python dependencies..."
|
||||||
cd $HBMONDIR
|
cd $HBMONDIR
|
||||||
|
|
||||||
# Install setuptools and wheel first
|
# Install setuptools and wheel first
|
||||||
if ! pip_install setuptools wheel; then
|
if ! pip_install setuptools wheel; then
|
||||||
echo "ERROR: Failed to install setuptools and wheel"
|
echo "ERROR: Failed to install setuptools and wheel"
|
||||||
echo "Please check your internet connection and Python installation"
|
echo "Please check your internet connection and Python installation"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if requirements.txt exists before trying to install
|
# Check if requirements.txt exists before trying to install
|
||||||
if [ -f requirements.txt ]; then
|
if [ -f requirements.txt ]; then
|
||||||
if ! pip_install -r requirements.txt; then
|
if ! pip_install -r requirements.txt; then
|
||||||
echo "ERROR: Failed to install packages from requirements.txt"
|
echo "ERROR: Failed to install packages from requirements.txt"
|
||||||
echo "This may be due to network issues or missing system dependencies"
|
echo "This may be due to network issues or missing system dependencies"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING: requirements.txt not found in $HBMONDIR"
|
echo "WARNING: requirements.txt not found in $HBMONDIR"
|
||||||
echo "Continuing installation without requirements.txt dependencies..."
|
echo "Continuing installation without requirements.txt dependencies..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install attrs with --force flag (note: --force is deprecated, using --force-reinstall)
|
# Install attrs with --force flag (note: --force is deprecated, using --force-reinstall)
|
||||||
if ! pip_install attrs --force-reinstall; then
|
if ! pip_install attrs --force-reinstall; then
|
||||||
echo "WARNING: Failed to install attrs with --force-reinstall, trying without force..."
|
echo "WARNING: Failed to install attrs with --force-reinstall, trying without force..."
|
||||||
if ! pip_install attrs; then
|
if ! pip_install attrs; then
|
||||||
echo "ERROR: Failed to install attrs package"
|
echo "ERROR: Failed to install attrs package"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Install /opt/HBMonv2/config.py ...
|
echo Install /opt/HBMonv2/config.py ...
|
||||||
cat << EOF > /opt/HBMonv2/config.py
|
cat << EOF > /opt/HBMonv2/config.py
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# HBMonv2 Configuration File Example
|
# HBMonv2 Configuration File Example
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user