From d05fc2160eadb671fec9ccb495da8190a07ab7b4 Mon Sep 17 00:00:00 2001 From: rperper Date: Fri, 9 Nov 2018 14:19:18 -0500 Subject: [PATCH] Retry PHPs --- install/installCyberPanel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index f007a9d01..14f3c85f2 100644 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -225,15 +225,16 @@ class InstallCyberPanel: def installAllPHPVersions(self): try: count = 0 - while (1): if self.distro == ubuntu: command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install ' \ 'lsphp7? lsphp7?-common lsphp7?-curl lsphp7?-dev lsphp7?-imap lsphp7?-intl lsphp7?-json ' \ 'lsphp7?-ldap lsphp7?-mysql lsphp7?-opcache lsphp7?-pspell lsphp7?-recode ' \ - 'lsphp7?-sqlite3 lsphp7?-tidy > /var/log/installPHPs 2>&1' + 'lsphp7?-sqlite3 lsphp7?-tidy >> /var/log/installPHPs 2>&1' res = os.system(command) + if res != 0: + res = 1 # Force a retry else: command = 'yum -y groupinstall lsphp-all' cmd = shlex.split(command)