forked from elhmn/ac-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_tcpdump.sh
executable file
·21 lines (18 loc) · 1.06 KB
/
install_tcpdump.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# ************************************************************************** #
# #
# install_tcpdump.sh #
# #
# By: elhmn <www.elhmn.com> #
# <[email protected]> #
# #
# Created: Wed Aug 29 15:01:11 2018 by elhmn #
# Updated: Thu Sep 06 14:51:56 2018 by bmbarga #
# #
# ************************************************************************** #
#!/bin/sh
source docker_utils.sh
for e in $(get_container_hash); do
if ! docker exec $e sh -c 'apt-get update && apt-get -y install tcpdump'; then
docker exec $e sh -c 'apk update && apk add tcpdump'
fi
done