]> gitweb.fluxo.info Git - puppet-tor.git/commitdiff
bug is fixed
authormh <mh@immerda.ch>
Sat, 30 Aug 2014 14:37:58 +0000 (16:37 +0200)
committermh <mh@immerda.ch>
Sat, 30 Aug 2014 14:37:58 +0000 (16:37 +0200)
files/polipo/polipo.cron [deleted file]
manifests/polipo/debian.pp

diff --git a/files/polipo/polipo.cron b/files/polipo/polipo.cron
deleted file mode 100755 (executable)
index aba88bc..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh        
-set -e
-
-FORBIDDEN_FILE=/etc/polipo/forbidden
-CONFIG_FILE=/etc/polipo/config
-
-if [ ! -x /usr/bin/polipo ]; then
-  exit 0
-fi
-
-if [ ! -f $FORBIDDEN_FILE ]; then
-  FORBIDDEN_FILE=/dev/null
-fi  
-
-PIDFILE=/var/run/polipo/polipo.pid
-[ -f "$PIDFILE" ] && kill -USR1 $(cat "$PIDFILE")
-# TODO: remove redirect stderr to /dev/null after the following bug is solved:
-# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580434
-su -c \
-       "nice polipo -x -c $CONFIG_FILE forbiddenFile=$FORBIDDEN_FILE > /dev/null" \
-       proxy &> /dev/null
-[ -f "$PIDFILE" ] && kill -USR2 $(cat "$PIDFILE")
index 5ca6922f51e4f1393f7c4e3d11c2fa2f4519714d..607b36174368c0daa8ac75cdaa1b3da2f4ef6ca4 100644 (file)
@@ -1,16 +1,5 @@
 # manage polipo on debian
 class tor::polipo::debian inherits tor::polipo::base {
-  # TODO: restore file to original state after the following bug is solved:
-  # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=580434
-  file { '/etc/cron.daily/polipo':
-    ensure  => present,
-    owner   => root,
-    group   => root,
-    mode    => '0755',
-    require => Package['polipo'],
-    source  => 'puppet:///modules/tor/polipo/polipo.cron',
-  }
-
   Service['polipo'] {
     hasstatus => false,
     pattern   => '/usr/bin/polipo',