ac7d03
From e344a42bfff8c9d124b13ae43baec72c5329e29f Mon Sep 17 00:00:00 2001
ac7d03
From: David Kupka <dkupka@redhat.com>
ac7d03
Date: Thu, 23 Mar 2017 12:48:06 +0100
ac7d03
Subject: [PATCH] Create temporaty directories at the begining of uninstall
ac7d03
ac7d03
Since commit 38c6689 temporary directories are no longer created at package
ac7d03
install time. Instead they're created at server install time.
ac7d03
Some steps in uninstall also assume that temporary direcories exist. Creating
ac7d03
the directories in the begining of server uninstall ensure that the uninstall
ac7d03
will go through.
ac7d03
ac7d03
https://pagure.io/freeipa/issue/6715
ac7d03
ac7d03
Reviewed-By: Martin Basti <mbasti@redhat.com>
ac7d03
---
ac7d03
 ipaserver/install/server/install.py | 4 ++++
ac7d03
 1 file changed, 4 insertions(+)
ac7d03
ac7d03
diff --git a/ipaserver/install/server/install.py b/ipaserver/install/server/install.py
ac7d03
index de6b5b31274c87ceca5d98bcf8e80230ec6ae1f7..d7eb0bfacd0815026c82f59d76962f527e2b7dad 100644
ac7d03
--- a/ipaserver/install/server/install.py
ac7d03
+++ b/ipaserver/install/server/install.py
ac7d03
@@ -1042,6 +1042,10 @@ def uninstall(installer):
ac7d03
 
ac7d03
     rv = 0
ac7d03
 
ac7d03
+    # further steps assumes that temporary directories exists so rather
ac7d03
+    # ensure they are created
ac7d03
+    tasks.create_tmpfiles_dirs()
ac7d03
+
ac7d03
     print("Shutting down all IPA services")
ac7d03
     try:
ac7d03
         services.knownservices.ipa.stop()
ac7d03
-- 
ac7d03
2.12.1
ac7d03