Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions simplerisk-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@ setup_ubuntu_debian(){
run_cmd a2enmod ssl
run_cmd a2ensite default-ssl

print_status 'Installing ping...'
# ping is used by SimpleRisk's asset discovery and is absent from minimal images.
run_cmd apt-get install -y iputils-ping

print_status 'Installing sendmail...'
run_cmd apt-get install -y sendmail

Expand Down Expand Up @@ -761,6 +765,10 @@ setup_centos_rhel(){
print_status 'Installing mod_ssl'
run_cmd dnf -y install mod_ssl

print_status 'Installing ping'
# ping is used by SimpleRisk's asset discovery and is absent from minimal images.
run_cmd dnf -y install iputils

print_status 'Installing sendmail'
run_cmd dnf -y install sendmail sendmail-cf m4

Expand Down Expand Up @@ -879,6 +887,10 @@ setup_suse(){
print_status 'Installing Apache...'
run_cmd zypper -n install apache2

print_status 'Installing ping...'
# ping is used by SimpleRisk's asset discovery and is absent from minimal images.
run_cmd zypper -n install iputils

print_status 'Enabling Apache on reboot...'
run_cmd systemctl enable apache2

Expand Down
4 changes: 4 additions & 0 deletions tests/verify-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ for ext in mysqli mbstring xml curl gd zip intl ldap; do
check "PHP extension '$ext' is loaded" bash -c "php -m | grep -qi '$ext'"
done

# ── Network tools ────────────────────────────────────────────────────────────
echo "--- Network tools ---"
check "ping is installed (asset discovery)" bash -c "command -v ping"

# ── Web server (OS-conditional) ───────────────────────────────────────────────
echo "--- Web server ---"
if grep -qi suse /etc/os-release 2>/dev/null; then
Expand Down
Loading