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:
parent
ab9d016fc3
commit
984c939499
5
init.sh
5
init.sh
@ -15,15 +15,14 @@ function disable_command {
|
|||||||
rm -f $1
|
rm -f $1
|
||||||
echo -e '#!/bin/sh\n\n/bin/true' > $1
|
echo -e '#!/bin/sh\n\n/bin/true' > $1
|
||||||
chmod +x $1
|
chmod +x $1
|
||||||
echo "Disabled $1"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function apply_restrictions {
|
function apply_restrictions {
|
||||||
if [ ! -z "$HIDE_PROCESSES" ]; then
|
if [ ! -z "$RTM_HIDE_PROCESSES" ]; then
|
||||||
disable_command "/bin/ps"
|
disable_command "/bin/ps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$HIDE_CONNECTIONS" ]; then
|
if [ ! -z "$RTM_HIDE_CONNECTIONS" ]; then
|
||||||
disable_command "/bin/netstat"
|
disable_command "/bin/netstat"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user