File size: 360 Bytes
45361be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#clean start

./control_containers.sh -d

sleep 2

./configure_system.sh -r driver

 

output=$(./configure_system.sh -p status | grep down)

 

# Check if the output is empty

if [ -z "$output" ]; then

    echo "No external ports are down."

else

    echo "The following PORTS are down:"

    echo "$output"

    ./configure_system.sh -p up

    sleep 3

fi