diff options
author | Mark Longair <mhl@pobox.com> | 2013-09-25 10:31:47 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-10-29 13:52:40 +0000 |
commit | 2da172772721f96a0f8b2a30b12809ea0ac4eed8 (patch) | |
tree | 1c418fa68f4c1ba63867fa0c39410faa62c7cf0b | |
parent | 150d7d8964ca153e66cab58b093375006e82c64f (diff) |
Exit quietly from purge-varnish-debian if varish is not installed
-rw-r--r-- | config/purge-varnish-debian.ugly | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/purge-varnish-debian.ugly b/config/purge-varnish-debian.ugly index 04458ea78..3f11344f2 100644 --- a/config/purge-varnish-debian.ugly +++ b/config/purge-varnish-debian.ugly @@ -22,6 +22,8 @@ DUSER=!!(*= $user *)!! # RAILS_ENV=your_rails_env # export RAILS_ENV +type varnishadm > /dev/null 2>&1 || exit + trap "" 1 export PIDFILE LOGFILE |