Skip to content

Commit

Permalink
skip the installation of pygpgme for almalinux 9
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgodwinkimani committed Jan 9, 2025
1 parent e255ee7 commit 5eb2f57
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2153,11 +2153,19 @@ def install_crowdsec(self):
# Download and run the CrowdSec installation script

# First, download the installation script to a temporary file.
command = 'curl -s -o install_crowdsec.sh https://install.crowdsec.net'
if self.distro == ubuntu:
command = 'curl -s -o install_crowdsec.sh https://install.crowdsec.net'
else: # For Centos7/8
command = 'curl -s -o script.rpm.sh https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.rpm.sh'

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

# Execute the downloaded script
command = 'sudo bash install_crowdsec.sh'
if self.distro == ubuntu:
command = 'sudo bash install_crowdsec.sh'
else:
command = 'sudo bash script.rpm.sh'

subprocess.call(shlex.split(command))

# Install CrowdSec based on the distribution
Expand Down
12 changes: 10 additions & 2 deletions install/install.py.bak
Original file line number Diff line number Diff line change
Expand Up @@ -2153,11 +2153,19 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout';
# Download and run the CrowdSec installation script

# First, download the installation script to a temporary file.
command = 'curl -s -o install_crowdsec.sh https://install.crowdsec.net'
if self.distro == ubuntu:
command = 'curl -s -o install_crowdsec.sh https://install.crowdsec.net'
else: # For Centos7/8
command = 'curl -s -o script.rpm.sh https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.rpm.sh'

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

# Execute the downloaded script
command = 'sudo bash install_crowdsec.sh'
if self.distro == ubuntu:
command = 'sudo bash install_crowdsec.sh'
else:
command = 'sudo bash script.rpm.sh'

subprocess.call(shlex.split(command))

# Install CrowdSec based on the distribution
Expand Down

0 comments on commit 5eb2f57

Please sign in to comment.