fix: force reinstall Python package and disable cache during installation and upgrade

This commit is contained in:
Lloyd
2025-11-27 16:01:54 +00:00
parent da1d4e9700
commit ab4392e2f7

View File

@@ -241,7 +241,7 @@ install_repeater() {
echo "75"; echo "# Installing Python package..."
cd "$INSTALL_DIR"
pip install --break-system-packages -e . >/dev/null 2>&1
pip install --break-system-packages --force-reinstall --no-cache-dir -e . >/dev/null 2>&1
echo "85"; echo "# Starting service..."
systemctl enable "$SERVICE_NAME"
@@ -346,7 +346,7 @@ upgrade_repeater() {
echo "[6/9] Updating Python package..."
cd "$INSTALL_DIR"
# Use timeout to prevent hanging and show output
timeout 120 pip install --break-system-packages -e . || {
timeout 120 pip install --break-system-packages --force-reinstall --no-cache-dir -e . || {
echo " ⚠ Python package install timed out or failed, continuing..."
}
echo " ✓ Python package updated"