Commit de5cbed3 authored by Emmanuel Temam's avatar Emmanuel Temam
Browse files

Change curl to wget in

parent d7b29d9e
......@@ -12,16 +12,16 @@ echo "Installing nrpe3"
portmaster -bd /usr/ports/net-mgmt/nrpe3
mkdir /usr/local/etc/nrpe3
echo "getting files certs"
curl > /usr/local/etc/nrpe3/ca_cert.pem
curl > /usr/local/etc/nrpe3/client_cert.key
curl > /usr/local/etc/nrpe3/client_cert.pem
wget -O - > /usr/local/etc/nrpe3/ca_cert.pem
wget -O - > /usr/local/etc/nrpe3/client_cert.key
wget -O - > /usr/local/etc/nrpe3/client_cert.pem
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
curl > /tmp/nrpe.cfg
wget -O - > /tmp/nrpe.cfg
mv $NRPEFILE $DESTDIR/nrpe.cfg.bak
echo "include_dir=$DESDIR" >> /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