]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
make-debs.sh: avoid creating recursive conf dir 9027/head
authorRoi Dayan <roid@mellanox.com>
Tue, 10 May 2016 07:13:53 +0000 (10:13 +0300)
committerRoi Dayan <roid@mellanox.com>
Tue, 10 May 2016 07:16:57 +0000 (10:16 +0300)
Before this commit when running make-debs.sh second time ln will create
the conf symlink inside already exisiting conf dir that was created
on the first tune.

Signed-off-by: Roi Dayan <roid@mellanox.com>
make-debs.sh

index 076829bb327e8ad37245f604083c9abe0154ae3a..2b309f576305f2ddca3fd3d17de738a19e69887b 100755 (executable)
@@ -93,7 +93,9 @@ Suite: stable
 Components: main
 Architectures: i386 amd64 source
 EOF
-ln -s $codename/conf conf
+if [ ! -e conf ]; then
+    ln -s $codename/conf conf
+fi
 reprepro --basedir $(pwd) include $codename WORKDIR/*.changes
 #
 # teuthology needs the version in the version file