Skip to content

Commit

Permalink
fix interrupted crowdsec installation
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgodwinkimani committed Jan 8, 2025
1 parent efc7b37 commit afe6f15
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 333 deletions.
12 changes: 6 additions & 6 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1829,10 +1829,10 @@ def install_crowdsec(self):
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

# Install CrowdSec based on the distribution
if self.distro in [cent8, centos]:
if self.distro == ubuntu:
command = "DEBIAN_FRONTEND=noninteractive apt -y install crowdsec"
else: # For Centos7/8
command = "yum -y install crowdsec"
else: # For Ubuntu
command = "apt -y install crowdsec"

preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

Expand All @@ -1842,10 +1842,10 @@ def install_crowdsec(self):
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

# Install Firewall Bouncer
if self.distro in [cent8, centos]:
if self.distro == ubuntu:
command = "DEBIAN_FRONTEND=noninteractive apt -y install crowdsec-firewall-bouncer-iptables"
else: # For Centos7/8
command = "yum -y install crowdsec-firewall-bouncer-iptables"
else: # For Ubuntu
command = "apt -y install crowdsec-firewall-bouncer-iptables"

preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)

Expand Down
Loading

0 comments on commit afe6f15

Please sign in to comment.