mirror of
https://bitbucket.org/shim_/docker-rtm.git
synced 2018-10-04 01:52:08 +02:00
refractor & option to hide connections
This commit is contained in:
14
init.sh
14
init.sh
@@ -37,8 +37,16 @@ else
|
|||||||
report_loop
|
report_loop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function disable_command {
|
||||||
|
rm -f $1
|
||||||
|
echo -e "#!/bin/sh\n\n/bin/true" > $1
|
||||||
|
chmod +x $1
|
||||||
|
}
|
||||||
|
|
||||||
if [ ! -z "$HIDE_PROCESSES" ]; then
|
if [ ! -z "$HIDE_PROCESSES" ]; then
|
||||||
rm -f /bin/ps
|
disable_command "/bin/ps"
|
||||||
echo -e "#!/bin/sh\n\n/bin/true" > /bin/ps
|
fi
|
||||||
chmod +x /bin/ps
|
|
||||||
|
if [ ! -z "$HIDE_CONNECTIONS" ]; then
|
||||||
|
disable_command "/bin/netstat"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user