SHA256
1
0
forked from pool/squid
squid/initialize_cache_if_needed.sh
Martin Pluskal 5dbc38c7fd Accepting request 562903 from home:adamm:branches:server:proxy
- Update Squid to 4.0.22 (fate#324583, bnc#1073089)
  * re-enable building with default openssl-devel
  * Helper changes since 3.5.27:
    + basic_msnt_multi_domain_auth removed - basic_smb_lm_auth
      helper performs the same functionality
    + cert_valid.pl testing helper renamed to
      security_fake_certverify
    + ssl_crtd renamed to security_file_certgen
  For complete set of release notes and changes since squid 3.5 see
  http://www.squid-cache.org/Versions/v4/squid-4.0.22-RELEASENOTES.html
- Updated squid.keyring using current keyring file from upstream
- missing_installs.patch: install manpages for installed helpers

OBS-URL: https://build.opensuse.org/request/show/562903
OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=141
2018-01-09 16:52:12 +00:00

14 lines
284 B
Bash

#!/bin/sh
DIR=$(dirname $0)
CACHE_DIR=$($DIR/cache_dir.sed < /etc/squid/squid.conf)
if [ 'x'$CACHE_DIR = 'x' ]; then
exit 0
fi
if ! test -d $CACHE_DIR; then
echo "Initializing cache directories..."
exec /usr/sbin/squid -z -F --foreground -S -f /etc/squid/squid.conf
fi