[DRE-commits] [diaspora-installer] 16/23: create schema.rb before load
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Wed Jan 25 21:57:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository diaspora-installer.
commit 4230c7b4712beb0ce9ad94aa744ae78efcd76d3c
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Wed Jan 25 22:22:55 2017 +0530
create schema.rb before load
---
initdb.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/initdb.sh b/initdb.sh
index a76c48e..e700046 100755
--- a/initdb.sh
+++ b/initdb.sh
@@ -16,6 +16,8 @@ bundle exec rake generate:secret_token
# Check if the db is already present
if check_db_status ; then
echo "Initializing database..."
+ su diaspora -s /bin/sh -c \
+ "test -f ~/db-schema.rb || cp ~/db-schema.rb.template ~/db-schema.rb"
su diaspora -s /bin/sh -c 'bundle exec rake db:schema:load'
else
echo "diaspora_production database is not empty, skipping database setup"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git
More information about the Pkg-ruby-extras-commits
mailing list