You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] Switching AlmaLinux repos to repo.almalinux.org to avoid mirror timeouts"| tee -a /var/log/cyberpanel_upgrade_debug.log
446
+
sed -i 's|^mirrorlist=|#mirrorlist=|g'"$repo"
447
+
sed -i 's|^#baseurl=\(.*repo\.almalinux\.org.*\)|baseurl=\1|'"$repo"
448
+
fi
449
+
done
450
+
fi
431
451
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] Setting up repositories for $Server_OS..."| tee -a /var/log/cyberpanel_upgrade_debug.log
432
452
rm -f /etc/yum.repos.d/CyberPanel.repo
433
453
rm -f /etc/yum.repos.d/litespeed.repo
@@ -979,6 +999,18 @@ if [[ -z "$CP_PYTHON" ]]; then
979
999
exit 1
980
1000
fi
981
1001
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] Using Python: $CP_PYTHON"| tee -a /var/log/cyberpanel_upgrade_debug.log
1002
+
1003
+
# Ensure ols_binaries_config exists (required by upgrade.py; may be missing when upgrading from older versions)
1004
+
mkdir -p /usr/local/CyberCP/install
1005
+
if [[ !-f /usr/local/CyberCP/install/ols_binaries_config.py ]];then
1006
+
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] Downloading ols_binaries_config.py (required for upgrade)..."| tee -a /var/log/cyberpanel_upgrade_debug.log
if [[ !-f /usr/local/CyberCP/install/ols_binaries_config.py ]];then
1011
+
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] WARNING: ols_binaries_config.py not found; upgrade.py may fail with ModuleNotFoundError"| tee -a /var/log/cyberpanel_upgrade_debug.log
1012
+
fi
1013
+
982
1014
echo -e "[$(date +"%Y-%m-%d %H:%M:%S")] Running: $CP_PYTHON upgrade.py $Branch_Name"| tee -a /var/log/cyberpanel_upgrade_debug.log
983
1015
984
1016
# Run upgrade.py and capture output
@@ -1633,6 +1665,20 @@ if [[ $Panel_Port = "" ]] ; then
1633
1665
Panel_Port="8090"
1634
1666
fi
1635
1667
1668
+
# Resolve server IP for remote access URL (avoid empty Remote: https://:2087)
0 commit comments