summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall/tools/ipa-replica-prepare4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare
index 3b6911288..19360fdf2 100755
--- a/install/tools/ipa-replica-prepare
+++ b/install/tools/ipa-replica-prepare
@@ -422,7 +422,9 @@ def main():
print "Packaging replica information into %s" % encfile
ipautil.run(["/bin/tar", "cf", replicafile, "-C", top_dir, "realm_info"])
- ipautil.encrypt_file(replicafile, encfile, dirman_password, top_dir);
+ ipautil.encrypt_file(replicafile, encfile, dirman_password, top_dir)
+
+ os.chmod(encfile, 0600)
remove_file(replicafile)
shutil.rmtree(dir)