Commit b314f9a3 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

move get-icmp.sh to /usr/local/sbin

parent 37186311
Pipeline #48894 passed with stages
in 1 minute
......@@ -49,9 +49,9 @@ insert in /etc/ntp.conf if in Uninett - else replace server addresses :
ln -s ~/rude/rude/rude .
ln -s ~/rude/crude/crude .
sudo cp ~/microdep/bin/get-icmp /usr/local/sbin
sudo cp ~/microdep/bin/get-icmp.sh /usr/local/sbin
add to /etc/sudoers.d/microdep
$USER ALL=(ALL) NOPASSWD: /usr/local/sbin/get-icmp.sh
microdep-user ALL=(ALL) NOPASSWD: /usr/local/sbin/get-icmp.sh > /etc/sudoers.d/microdep
~~~~~
### Edit ~/microdep/etc/local.cfg :
......
......@@ -5,7 +5,7 @@ source $(dirname "${BASH_SOURCE[0]}")/../etc/start.cfg
dato=`date +%T`
log=${logpath}/${date}
sudo $root/bin/get-icmp.sh > ${log}/icmp-$dato.pcap 2> ${log}/icmp.log
sudo /usr/local/sbin/get-icmp.sh > ${log}/icmp-$dato.pcap 2> ${log}/icmp.log
......
Supports Markdown
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