allow /etc/docker-prune.conf to overwritedefaults
This commit is contained in:
@@ -36,8 +36,15 @@ success() {
|
|||||||
append_msg $* 1>&2
|
append_msg $* 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# commandline parameter evaluation
|
# default
|
||||||
filter="until=168h"
|
filter="until=168h"
|
||||||
|
|
||||||
|
# config file overwrites
|
||||||
|
if test -e /etc/docker-prune.conf; then
|
||||||
|
. /etc/docker-prune.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# commandline parameter evaluation
|
||||||
while test $# -gt 0; do
|
while test $# -gt 0; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
(--help|-h) less <<EOF
|
(--help|-h) less <<EOF
|
||||||
|
Reference in New Issue
Block a user