Commit 8dee57f2 authored by Emmanuel Temam's avatar Emmanuel Temam
Browse files

wget stderr to dev null

parent 2e39739d
......@@ -19,16 +19,16 @@ echo "Installing nrpe3"
portmaster -bd /usr/ports/net-mgmt/nrpe3
mkdir /usr/local/etc/nrpe3
echo "getting files certs"
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/certs/ca_cert.pem > /usr/local/etc/nrpe3/ca_cert.pem
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/certs/client_cert.key > /usr/local/etc/nrpe3/client_cert.key
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/certs/client_cert.pem > /usr/local/etc/nrpe3/client_cert.pem
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/certs/ca_cert.pem > /usr/local/etc/nrpe3/ca_cert.pem 2>/dev/null
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/certs/client_cert.key > /usr/local/etc/nrpe3/client_cert.key 2>/dev/null
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/certs/client_cert.pem > /usr/local/etc/nrpe3/client_cert.pem 2>/dev/null
echo "changing rc.conf"
sed -i.bak 's/nrpe2/nrpe3/g' /etc/rc.conf
echo "backup rc.conf"
mv /etc/rc.conf.bak /usr/local/etc/nrpe3
echo "making new nrpe.cfg"
cat $NRPEFILE | grep "^command\[" > $DESTDIR/local_commands.cfg
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/tpl_nrpe3.cfg > /tmp/nrpe.cfg
wget -O - https://gitlab.math.univ-paris-diderot.fr/etemam/nrpe3/raw/master/tpl_nrpe3.cfg > /tmp/nrpe.cfg 2>/dev/null
mv $NRPEFILE $DESTDIR/nrpe.cfg.bak
echo "include_dir=$DESTDIR" >> /tmp/nrpe.cfg
mv /tmp/nrpe.cfg $NRPEFILE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment