Skip to content

Commit

Permalink
Update squid_running_on_docker.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 authored Sep 26, 2024
1 parent 0194831 commit 3478483
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flavors/squid_auto/squid_running_on_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ function set_boot_configuration(){

cat > /etc/squid_boot.sh <<EOF
#!/bin/bash
# if [ -f /var/run/squid/squid.pid ];
# then
# rm /var/run/squid/squid.pid
# fi
# if ( docker inspect squid -f '{{.State}}' > /dev/null 2>&1 );
# then
# $(command -v docker) rm squid
# fi
if [ -f /var/run/squid/squid.pid ];
then
rm /var/run/squid/squid.pid
fi
if ( docker inspect squid -f '{{.State}}' > /dev/null 2>&1 );
then
$(command -v docker) rm squid
fi
# At this point docker is already up and we dont want to restore the firewall and wipte all
# docker nat rules
Expand Down

0 comments on commit 3478483

Please sign in to comment.