From 1b0ca07d869dd2c94853b69a9c58613ece735d22 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Thu, 21 Jan 2016 13:25:33 -0600 Subject: [PATCH] Force dib-python symlink creation The undercloud actually has dib run twice on it - once to create the instack image, and again when we run instack itself. The first run creates the dib-python symlink, and the second blows up because the link already exists. Force the link creation so the script is idempotent. Change-Id: I78f9e6f5afcf8ebe6d7911a7a434525ba7c737cf --- elements/dib-python/pre-install.d/01-dib-python | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/dib-python/pre-install.d/01-dib-python b/elements/dib-python/pre-install.d/01-dib-python index 1868573ef..2b3f76383 100755 --- a/elements/dib-python/pre-install.d/01-dib-python +++ b/elements/dib-python/pre-install.d/01-dib-python @@ -12,4 +12,4 @@ if [ -z "$python_path" ]; then exit 1 fi -ln -s $python_path /usr/local/bin/dib-python +ln -sf $python_path /usr/local/bin/dib-python