[Pkg-ofed-commits] [srptools] 01/01: Delete temp dir in preinst before possibly creating it

Roland Fehrenbacher rfehren-guest at moszumanska.debian.org
Sat May 6 15:17:20 UTC 2017


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

rfehren-guest pushed a commit to branch master
in repository srptools.

commit fafb046d985dda16ec12dd64b6eae43cb64c16ca
Author: Roland Fehrenbacher <rf at q-leap.de>
Date:   Sat May 6 15:13:34 2017 +0000

    Delete temp dir in preinst before possibly creating it
---
 debian/srptools.preinst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/srptools.preinst b/debian/srptools.preinst
index 76a2a18..f9a01e5 100644
--- a/debian/srptools.preinst
+++ b/debian/srptools.preinst
@@ -27,6 +27,9 @@ case "$1" in
         checkdir=/var/lib/srptools-old-had-d
         # Check whether old config already contains the new 'global' 'd'
         # and create temporary dir
+        if [ -d $checkdir ]; then
+          rm -rf $checkdir
+        fi
         if grep -q '^\s*d\s*\#*' $conffile ; then
           mkdir $checkdir
         fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/srptools.git



More information about the Pkg-ofed-commits mailing list