summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-11-06 12:32:11 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2015-11-06 12:32:11 -0400
commitafb03bb7e30cb46bc3fd55fa58888b13171db299 (patch)
tree5e2fd3212a82f0d9e2ece90b72a846cd9dcfc0ff
parent6955b11fbed1f3d73d814d610b4a6905331406e8 (diff)
downloadopenshift-afb03bb7e30cb46bc3fd55fa58888b13171db299.tar.gz
openshift-afb03bb7e30cb46bc3fd55fa58888b13171db299.tar.bz2
openshift-afb03bb7e30cb46bc3fd55fa58888b13171db299.tar.xz
openshift-afb03bb7e30cb46bc3fd55fa58888b13171db299.zip
Fix creation of origin symlink when dir already exists.
-rw-r--r--playbooks/adhoc/upgrades/upgrade.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/playbooks/adhoc/upgrades/upgrade.yml b/playbooks/adhoc/upgrades/upgrade.yml
index 4ca9b94ac..890a51241 100644
--- a/playbooks/adhoc/upgrades/upgrade.yml
+++ b/playbooks/adhoc/upgrades/upgrade.yml
@@ -47,9 +47,12 @@
- stat: path=/var/lib/openshift
register: var_lib_openshift
+ - stat: path=/var/lib/origin
+ register: var_lib_origin
+
- name: Create origin symlink if necessary
file: src=/var/lib/openshift/ dest=/var/lib/origin state=link
- when: var_lib_openshift.stat.exists == True
+ when: var_lib_openshift.stat.exists == True and var_lib_origin.stat.exists == False
- name: Check available disk space for etcd backup
# We assume to be using the data dir for all backups.