summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-26 14:06:27 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-26 14:06:27 +0100
commit36919fb419a40688daa97e36734f579488cb56e2 (patch)
treea52a4d7df4d1ea2b1926a722ca2c0de59fc96e25 /lib
parent18d827073a3612c88185523af15c7314e465dd63 (diff)
Restore and Backup fixes.
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/backup.rake2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake
index fec3956..d12bf5e 100644
--- a/lib/tasks/backup.rake
+++ b/lib/tasks/backup.rake
@@ -35,6 +35,8 @@ namespace :backup do
system "gunzip < /tmp/gs5_restore_directory/*/GS5/databases/MySQL/gemeinschaft.sql.gz | mysql -u #{db_user} -p#{db_password} #{database}"
FileUtils.rm_rf tmp_dir
+
+ system "cd /opt/gemeinschaft && rake db:migrate"
end
end