]> git.pld-linux.org Git - packages/lxc.git/commitdiff
mksh can't redirect fd 200, use 9
authorElan Ruusamäe <glen@delfi.ee>
Mon, 13 Jan 2014 09:43:42 +0000 (11:43 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 13 Jan 2014 09:43:42 +0000 (11:43 +0200)
lxc-pld.in.sh

index c711027f1b095927cd445549d2ddd8ca8ab2fec6..ca1677a8dbff63103a9aab985883f5d242769f95 100755 (executable)
@@ -187,7 +187,7 @@ install_pld()
 {
        mkdir -p @LOCALSTATEDIR@/lock/subsys/
        (
-               flock -x 200
+               flock -x 9
                if [ $? -ne 0 ]; then
                        echo "Cache repository is busy."
                        return 1
@@ -218,7 +218,7 @@ install_pld()
                fi
 
                return 0
-       ) 200>@LOCALSTATEDIR@/lock/subsys/lxc-pld
+       ) 9>@LOCALSTATEDIR@/lock/subsys/lxc-pld
 
        return $?
 }
@@ -287,7 +287,7 @@ clean()
 
        # lock, so we won't purge while someone is creating a repository
        (
-               flock -x 200
+               flock -x 9
                if [ $? != 0 ]; then
                        echo "Cache repository is busy."
                        exit 1
@@ -296,7 +296,7 @@ clean()
                echo -n "Purging the download cache for PLD Linux $release..."
                rm --preserve-root --one-file-system -rf $cache && echo "Done." || exit 1
                exit 0
-       ) 200>@LOCALSTATEDIR@/lock/subsys/lxc-pld
+       ) 9>@LOCALSTATEDIR@/lock/subsys/lxc-pld
 }
 
 usage()
This page took 0.145092 seconds and 4 git commands to generate.