mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-16 05:55:52 +02:00
docker-compose install for redhat
This commit is contained in:
@@ -46,7 +46,15 @@ class Docker_Sites(multi.Thread):
|
||||
|
||||
def InstallDocker(self):
|
||||
|
||||
command = 'apt install docker-compose -y'
|
||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
|
||||
command = 'sudo curl -L "https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
command = 'chmod +x /usr/local/bin/docker-compose'
|
||||
|
||||
else:
|
||||
command = 'apt install docker-compose -y'
|
||||
|
||||
ReturnCode = ProcessUtilities.executioner(command)
|
||||
|
||||
if ReturnCode:
|
||||
|
||||
Reference in New Issue
Block a user