~yolanda.robla/ubuntu/saucy/clamav/dep-8-tests

« back to all changes in this revision

Viewing changes to debian/clamav-milter.init.in

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2009-11-02 23:27:19 UTC
  • mfrom: (0.35.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091102232719-61ay35095dhbuxfm
Tags: 0.95.3+dfsg-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build-dep on electric-fence (in Universe)
  - Build-dep on libltdl3-dev instead of libltdl-dev for updating earlier
    releases more easily
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
  SOCKET_TYPE="${SOCKET%%:*}"
99
99
  ;;
100
100
esac
101
 
SOCKET="${SOCKET_TYPE:-local}:${SOCKET_PATH}"
 
101
SOCKET_TYPE="${SOCKET_TYPE:-local}"
 
102
SOCKET="${SOCKET_TYPE}:${SOCKET_PATH}"
102
103
 
103
104
if is_true "$Foreground"; then
104
105
  if [ ! -x "$SUPERVISOR" ] ; then
127
128
[ -n "$DataBaseDirectory" ] || DataBaseDirectory=/var/run/clamav
128
129
 
129
130
make_dir "$DataBaseDirectory"
130
 
if [ "${SOCKET_PATH#inet}" = "${SOCKET_PATH}" ]; then
 
131
if [ "${SOCKET_TYPE}" = "local" ]; then
131
132
  make_dir $(dirname "$SOCKET_PATH")
132
133
  chown $User $(dirname "$SOCKET_PATH")
133
134
fi