[pinto] 01/01: Updated owner to $defaultRepositoryPath, /var/run/pinto and /etc/pinto folders.

Oleg Gashev oleg at gashev.net
Sat Sep 21 07:52:16 UTC 2013


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

gashev-guest pushed a commit to branch master
in repository pinto.

commit 5db01060f971cd40dcb07423ee15df814d27eae5
Author: Oleg Gashev <oleg at gashev.net>
Date:   Sat Sep 21 07:29:07 2013 +0000

    Updated owner to $defaultRepositoryPath, /var/run/pinto and /etc/pinto folders.
---
 debian/pinto.postinst |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/pinto.postinst b/debian/pinto.postinst
index afdec79..20c604a 100644
--- a/debian/pinto.postinst
+++ b/debian/pinto.postinst
@@ -13,6 +13,7 @@ if [ "$1" = configure ]; then
 
     if [ ! -e "$defaultRepositoryPath" ] ; then
         pinto -r $defaultRepositoryPath init
+        chown -R pinto:pinto $defaultRepositoryPath
     else
         echo "Cannot create a new repository to $defaultRepositoryPath."
         echo "$defaultRepositoryPath already exist."
@@ -22,8 +23,8 @@ if [ "$1" = configure ]; then
 
 	if [ ! -e /var/run/pinto ] ; then
 		mkdir -p /var/run/pinto
-		chown root:pinto /var/run/pinto
-		chmod 0775 /var/run/pinto
+		chown pinto:pinto /var/run/pinto
+		chmod 0750 /var/run/pinto
 	fi
 
     if [ ! -e /var/log/pinto ] ; then
@@ -46,6 +47,7 @@ if [ "$1" = configure ]; then
 
     if [ ! -e /etc/pinto ] ; then
         mkdir -p /etc/pinto
+        chown pinto:pinto /etc/pinto
         chmod 0750 /etc/pinto
     fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pinto.git



More information about the Pkg-perl-cvs-commits mailing list