From d94db1941019ef9633e384c81266edb69fb17ca4 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sun, 1 Dec 2019 14:46:45 +0100 Subject: [PATCH] Fix CrisisCleanup admin user creation --- lxc-apps/crisiscleanup/install.sh | 3 +-- lxc-apps/crisiscleanup/install/adminpwd.rb | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 lxc-apps/crisiscleanup/install/adminpwd.rb diff --git a/lxc-apps/crisiscleanup/install.sh b/lxc-apps/crisiscleanup/install.sh index d335deb..4419f82 100755 --- a/lxc-apps/crisiscleanup/install.sh +++ b/lxc-apps/crisiscleanup/install.sh @@ -31,9 +31,8 @@ cp cc_conf/initializers/devise.rb /srv/crisiscleanup/cc_conf/initializers/devise cp cc_conf/environments/production.rb /srv/crisiscleanup/cc_conf/environments/production.rb # Populate database -#envsubst /var/lib/lxc/crisiscleanup/crisiscleanup/srv/crisiscleanup/db/seeds.rb # TODO bud volat User.create! zvlast nebo vyresit jinak lxc-execute crisiscleanup -- rake db:schema:load -lxc-execute crisiscleanup -- rake db:seed +envsubst