Commit 953c90bc authored by Olav Kvittem's avatar Olav Kvittem
Browse files

fallback microdep/bin/get-icmp.sh if not /usr/local/sbin

parent b314f9a3
Pipeline #48954 passed with stages
in 57 seconds
......@@ -51,7 +51,7 @@ insert in /etc/ntp.conf if in Uninett - else replace server addresses :
sudo cp ~/microdep/bin/get-icmp.sh /usr/local/sbin
add to /etc/sudoers.d/microdep
microdep-user ALL=(ALL) NOPASSWD: /usr/local/sbin/get-icmp.sh > /etc/sudoers.d/microdep
echo [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 /usr/local/sbin/get-icmp.sh > ${log}/icmp-$dato.pcap 2> ${log}/icmp.log
sudo $root/bin/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