[DRE-commits] [syncache] 01/01: always clean up PIDDIR permissions

Dmitry Borodaenko angdraug at moszumanska.debian.org
Mon Feb 15 18:25:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

angdraug pushed a commit to branch master
in repository syncache.

commit 9b18111d309b97c805fede7360738eec617aa830
Author: Dmitry Borodaenko <angdraug at gmail.com>
Date:   Mon Feb 15 10:25:14 2016 -0800

    always clean up PIDDIR permissions
---
 debian/syncache.init | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/debian/syncache.init b/debian/syncache.init
index 7cc035b..1758194 100755
--- a/debian/syncache.init
+++ b/debian/syncache.init
@@ -70,11 +70,7 @@ set -e
 
 syncache_start () {
 	PIDDIR=`dirname "$PIDFILE"`
-	if [ -d "$PIDDIR" ]; then
-		chmod 755 "$PIDDIR"
-	else
-		install -o syncache -g syncache -m 755 -d "$PIDDIR"
-	fi
+	install -o syncache -g syncache -m 755 -d "$PIDDIR"
 	start-stop-daemon --start --pidfile $PIDFILE --name $PNAME \
 	    $NICE --oknodo --startas $DAEMON -- $OPTIONS
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/syncache.git



More information about the Pkg-ruby-extras-commits mailing list