#!/bin/bash # KNEL OAM Module # Operations and Maintenance Module set -euo pipefail echo "Running OAM module..." # Setup up2date script if [[ -f ./scripts/up2date.sh ]]; then cp ./scripts/up2date.sh /usr/local/bin/up2date.sh chmod +x /usr/local/bin/up2date.sh fi # Configure LibreNMS if this is not a LibreNMS server if [[ $LIBRENMS_CHECK -eq 0 ]]; then # Install rsyslog if needed apt-get update apt-get install -y rsyslog # Restart rsyslog systemctl stop rsyslog systemctl start rsyslog fi echo "OAM module completed"