summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-09-22 10:26:36 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-09-22 10:29:34 +0200
commitb713fbeca10d22daea826b50b04e0e165d2e22f1 (patch)
tree5991e7e340cd9396b53af4c4641c3746dc0a2a2b
parent6c73ce6880c81cb0173815f0090c2db2ba36c135 (diff)
downloadgitlab-ci-b713fbeca10d22daea826b50b04e0e165d2e22f1.tar.gz
Relax backup dir permissions for final export
-rw-r--r--lib/tasks/backup.rake3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake
index 67c2dc4..9b039e8 100644
--- a/lib/tasks/backup.rake
+++ b/lib/tasks/backup.rake
@@ -21,6 +21,9 @@ namespace :backup do
backup.pack
backup.cleanup
backup.remove_old
+
+ # Relax backup directory permissions to make the migration easier
+ File.chmod(0755, GitlabCi.config.backup.path)
end
desc "GITLAB | Restore a previously created backup"