48 lines
810 B
Plaintext
48 lines
810 B
Plaintext
# ----
|
|
# Creating a new account with admin privileges
|
|
# ---
|
|
|
|
#see also
|
|
# https://meta.discourse.org/t/create-an-admin-account-from-the-console/17274
|
|
|
|
|
|
# Accessing the console
|
|
#
|
|
# Connect to your Discourse server using SSH,
|
|
#
|
|
ssh dc-opp.oopen.de
|
|
|
|
|
|
# Become root
|
|
#
|
|
sudo -i
|
|
|
|
|
|
# Switch to your Discourse directory:
|
|
#
|
|
cd /var/discourse
|
|
|
|
|
|
# Enter the Docker container:
|
|
#
|
|
./launcher enter app
|
|
|
|
|
|
# Creating a new account with admin privileges
|
|
#
|
|
# Inside the console, run the following command:
|
|
#
|
|
rake admin:create
|
|
|
|
# You will be prompted for:
|
|
#
|
|
# Email
|
|
# Password
|
|
# Confirm Password
|
|
#
|
|
#A new account will be created with a username based on the email address. When asked
|
|
#if you want to grant admin privileges, press Enter to confirm.
|
|
#
|
|
#If successful, you#ll see: "Your account now has Admin privileges!"
|
|
|