don't install rsyslog on librenms server
fixed some formatting
This commit is contained in:
@ -124,12 +124,13 @@ function global-installPackages() {
|
|||||||
dstat \
|
dstat \
|
||||||
snmpd \
|
snmpd \
|
||||||
ncdu \
|
ncdu \
|
||||||
latencytop \
|
|
||||||
iftop \
|
iftop \
|
||||||
acct \
|
iotop \
|
||||||
|
latencytop \
|
||||||
nethogs \
|
nethogs \
|
||||||
sysstat \
|
sysstat \
|
||||||
ngrep \
|
ngrep \
|
||||||
|
acct \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
screen \
|
screen \
|
||||||
tailscale \
|
tailscale \
|
||||||
@ -148,7 +149,6 @@ function global-installPackages() {
|
|||||||
mailutils \
|
mailutils \
|
||||||
clamav \
|
clamav \
|
||||||
sl \
|
sl \
|
||||||
rsyslog \
|
|
||||||
logwatch \
|
logwatch \
|
||||||
git \
|
git \
|
||||||
net-tools \
|
net-tools \
|
||||||
@ -162,7 +162,6 @@ function global-installPackages() {
|
|||||||
fonts-powerline \
|
fonts-powerline \
|
||||||
webmin \
|
webmin \
|
||||||
usermin \
|
usermin \
|
||||||
iotop \
|
|
||||||
ntpsec \
|
ntpsec \
|
||||||
ntpsec-ntpdate \
|
ntpsec-ntpdate \
|
||||||
tuned \
|
tuned \
|
||||||
@ -262,18 +261,22 @@ function global-postPackageConfiguration() {
|
|||||||
cat ./ConfigFiles/NetworkDiscovery/lldpd >/etc/default/lldpd
|
cat ./ConfigFiles/NetworkDiscovery/lldpd >/etc/default/lldpd
|
||||||
systemctl restart lldpd
|
systemctl restart lldpd
|
||||||
|
|
||||||
|
export LIBRENMS_CHECK
|
||||||
|
LIBRENMS_CHECK="$(hostname | grep -c tsys-librenms || true)"
|
||||||
|
|
||||||
|
if [ "$LIBRENMS_CHECK" -eq 0 ]; then
|
||||||
|
DEBIAN_FRONTEND="noninteractive" apt-get -qq --yes -o Dpkg::Options::="--force-confold" install rsyslog
|
||||||
systemctl stop rsyslog
|
systemctl stop rsyslog
|
||||||
systemctl start rsyslog
|
systemctl start rsyslog
|
||||||
|
fi
|
||||||
|
|
||||||
export NTP_SERVER_CHECK
|
export NTP_SERVER_CHECK
|
||||||
NTP_SERVER_CHECK="$(hostname | egrep -c 'pfv-netboot|pfvsvrpi' || true)"
|
NTP_SERVER_CHECK="$(hostname | egrep -c 'pfv-netboot|pfvsvrpi' || true)"
|
||||||
|
|
||||||
if [ "$NTP_SERVER_CHECK" -eq 0 ]; then
|
if [ "$NTP_SERVER_CHECK" -eq 0 ]; then
|
||||||
|
|
||||||
print_info "Not updating NTP config, this is the TSYS Stratum1 NTP server..."
|
|
||||||
cat ./ConfigFiles/NTP/ntp.conf >/etc/ntpsec/ntp.conf
|
cat ./ConfigFiles/NTP/ntp.conf >/etc/ntpsec/ntp.conf
|
||||||
systemctl restart ntpsec.service
|
systemctl restart ntpsec.service
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl stop postfix
|
systemctl stop postfix
|
||||||
|
Reference in New Issue
Block a user