Update squid/run.sh
This commit is contained in:
parent
53f7d9c763
commit
6f0f3a47e8
@ -23,17 +23,14 @@ do
|
|||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
# check sup once before starting
|
# Run sup: IN BACKGROUND
|
||||||
# if env sup
|
/squid/sup.sh &
|
||||||
/run.sh
|
|
||||||
case $? in
|
case $? in
|
||||||
1) exit 1;;
|
1) exit 1;;
|
||||||
2) exit 1;;
|
2) exit 1;;
|
||||||
*) echo -e "Sup ok or no sup";;
|
*) echo -e "Sup ok or no sup";;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
# Run sup: IN BACKGROUND
|
|
||||||
/squid/sup.sh &
|
|
||||||
|
|
||||||
if [ $(grep -c "\-s\ /certs" /etc/squid/squid.conf) -ne 0 ];then
|
if [ $(grep -c "\-s\ /certs" /etc/squid/squid.conf) -ne 0 ];then
|
||||||
if [ ! -d /certs/ssl_db ]; then
|
if [ ! -d /certs/ssl_db ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user