fix dovecot upgrade on ubuntu

This commit is contained in:
Usman Nasir
2021-03-18 15:18:56 +05:00
parent b2d3bab91b
commit 3b725a8523
6 changed files with 7 additions and 8 deletions

View File

@@ -88,8 +88,7 @@ fileManager.controller('editFileCtrl', function ($scope, $http, $window) {
cm.setValue(response.data.fileContents);
cm.setSize(null, 800);
cm.on("keyup", function (cm, event) {
if (!cm.state.completionActive &&
event.keyCode != 13) {
if (!cm.state.completionActive && event.keyCode === 9) {
CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
}
});

View File

@@ -759,12 +759,14 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
if self.distro == centos:
command = 'yum install --enablerepo=gf-plus -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
elif self.distro == cent8:
command = 'dnf --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
command = 'dnf install --enablerepo=gf-plus postfix3 postfix3-mysql -y'
else:
command = 'apt-get -y debconf-utils'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

View File

@@ -81,7 +81,7 @@ class cPanelImporter:
def PHPDecider(self):
if self.PHPVersion == 'inherit':
self.PHPVersion = 'PHP 7.2'
self.PHPVersion = 'PHP 7.4'
if self.PHPVersion.find('53') > -1:
self.PHPVersion = 'PHP 5.3'
elif self.PHPVersion.find('54') > -1:

View File

@@ -101,9 +101,10 @@ class Upgrade:
@staticmethod
def executioner(command, component, do_exit=0):
try:
FNULL = open(os.devnull, 'w')
count = 0
while True:
res = subprocess.call(shlex.split(command))
res = subprocess.call(shlex.split(command), stdout=FNULL, stderr=subprocess.STDOUT)
if res != 0:
count = count + 1
Upgrade.stdOut(component + ' failed, trying again, try number: ' + str(count), 0)

View File

@@ -88,8 +88,7 @@ fileManager.controller('editFileCtrl', function ($scope, $http, $window) {
cm.setValue(response.data.fileContents);
cm.setSize(null, 800);
cm.on("keyup", function (cm, event) {
if (!cm.state.completionActive &&
event.keyCode != 13) {
if (!cm.state.completionActive && event.keyCode === 9) {
CodeMirror.commands.autocomplete(cm, null, {completeSingle: false});
}
});

View File

@@ -738,8 +738,6 @@ app.controller('listChildDomainsMain', function ($scope, $http, $timeout) {
type: 'error'
});
}
}
function cantLoadInitialDatas(response) {