Commit 8d45b40f authored by nono's avatar nono 💻
Browse files

update admin user creation

parent 9224ea2f
......@@ -6,11 +6,11 @@
chdir: "{{ discourse_install_path }}"
creates: "{{ discourse_install_path }}/apikey"
- name: "Create {{ discourse_forum_user }} user"
- name: "Create initial admin user"
become: yes
shell: |
set -ex
pass="{{ discourse_forum_admin_password }}" ; ( echo {{ discourse_forum_admin_user }} ; echo "$pass" ; echo "$pass" ; echo ) | docker exec -i app rake 'admin:create'
pass="{{ discourse_forum_admin_password }}" ; ( echo {{ discourse_admin_email_account }} ; echo "$pass" ; echo "$pass" ; echo ) | docker exec -i app rake 'admin:create'
touch admin_exists
args:
chdir: "{{ discourse_install_path }}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment