1
0
mirror of https://bitbucket.org/shim_/docker-rtm.git synced 2018-10-04 01:52:08 +02:00

prefix options

This commit is contained in:
shim_ 2016-06-22 22:37:14 +02:00
parent ab9d016fc3
commit 984c939499

View File

@ -15,15 +15,14 @@ function disable_command {
rm -f $1
echo -e '#!/bin/sh\n\n/bin/true' > $1
chmod +x $1
echo "Disabled $1"
}
function apply_restrictions {
if [ ! -z "$HIDE_PROCESSES" ]; then
if [ ! -z "$RTM_HIDE_PROCESSES" ]; then
disable_command "/bin/ps"
fi
if [ ! -z "$HIDE_CONNECTIONS" ]; then
if [ ! -z "$RTM_HIDE_CONNECTIONS" ]; then
disable_command "/bin/netstat"
fi
}