[pinto] 01/01: Updated postinst script: check is directory exist.

Oleg Gashev oleg at gashev.net
Sun Oct 6 19:01:08 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 83004a032c2c7ed33bf0ba3cc8dc78b7b57ba0d4
Author: Oleg Gashev <oleg at gashev.net>
Date:   Sun Oct 6 18:56:34 2013 +0000

    Updated postinst script: check is directory exist.
---
 debian/pinto.postinst |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/pinto.postinst b/debian/pinto.postinst
index 479e8d7..7a730f1 100644
--- a/debian/pinto.postinst
+++ b/debian/pinto.postinst
@@ -21,7 +21,7 @@ if [ "$1" = configure ]; then
         echo "and exec /usr/bin/pinto -r $defaultRepositoryPath init."
     fi
 
-    if [ ! -e /var/log/pinto ] ; then
+    if [ ! -d /var/log/pinto ] ; then
         mkdir -p /var/log/pinto
         chown pinto:adm /var/log/pinto
         chmod 0750 /var/log/pinto
@@ -39,7 +39,7 @@ if [ "$1" = configure ]; then
         chmod 0640 /var/log/pinto/error.log
     fi
 
-    if [ ! -e /etc/pinto ] ; then
+    if [ ! -d /etc/pinto ] ; then
         mkdir -p /etc/pinto
         chown pinto:pinto /etc/pinto
         chmod 0750 /etc/pinto

-- 
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