Skip to content

Commit 3cedd8e

Browse files
committed
disable certain package updates on centos
1 parent faa4458 commit 3cedd8e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

install/install.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,19 @@ def installRedis(self):
20542054
command = 'systemctl enable redis'
20552055
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
20562056

2057+
def disablePackegeUpdates(self):
2058+
if self.distro == centos:
2059+
2060+
mainConfFile = '/etc/yum.conf'
2061+
content = 'exclude=MariaDB-client MariaDB-common MariaDB-devel MariaDB-server MariaDB-shared ' \
2062+
'pdns pdns-backend-mysql dovecot dovecot-mysql postfix3 postfix3-ldap postfix3-mysql ' \
2063+
'postfix3-pcre restic opendkim libopendkim pure-ftpd ftp\n'
2064+
2065+
writeToFile = open(mainConfFile, 'a')
2066+
writeToFile.write(content)
2067+
writeToFile.close()
2068+
2069+
20572070
def main():
20582071
parser = argparse.ArgumentParser(description='CyberPanel Installer')
20592072
parser.add_argument('publicip', help='Please enter public IP for your VPS or dedicated server.')
@@ -2200,6 +2213,7 @@ def main():
22002213
checks.enableDisableFTP('on', distro)
22012214

22022215
checks.installCLScripts()
2216+
checks.disablePackegeUpdates()
22032217
logging.InstallLog.writeToFile("CyberPanel installation successfully completed!")
22042218

22052219

0 commit comments

Comments
 (0)