aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorminus <minus@mnus.de>2018-11-18 11:27:28 +0100
committerDrew DeVault <sir@cmpwn.com>2018-11-18 08:25:27 -0500
commitc34ee17f747c304076ea650fb99419f957842a68 (patch)
tree5ee012be18aa56401c534421462292cae5ea4b59
parentc0bf66bfdd00ec3973ae5f9dd34aa982bd8222b9 (diff)
downloadsr.ht-docs-c34ee17f747c304076ea650fb99419f957842a68.tar.gz
Update installation docs
-rw-r--r--installation.md20
1 files changed, 16 insertions, 4 deletions
diff --git a/installation.md b/installation.md
index b601dba..d0202a8 100644
--- a/installation.md
+++ b/installation.md
@@ -47,9 +47,9 @@ sr.ht a consistent look and feel.
The core package is listed as a dependency of the official `*.sr.ht` packages,
so installing it explicitly is not necessary if you are using our package
repositories. If you are not using our packages, obtain the [source
-code](https://git.sr.ht/~sircmpwn/srht) and install it like a typical Python
-package (`./setup.py install --prefix=/usr`). You will need to install its
-dependencies beforehand, for an up-to-date list see [the
+code](https://git.sr.ht/~sircmpwn/srht), initialize submodules and install it
+like a typical Python package (`./setup.py install --prefix=/usr`). You will
+need to install its dependencies beforehand, for an up-to-date list see [the
package](https://git.sr.ht/~sircmpwn/sr.ht-pkgbuilds/tree/master/python-srht/PKGBUILD).
# Package Installation
@@ -97,10 +97,22 @@ upgrades will be managed automatically by the package, or if you're using the
source code you can run `alembic upgrade head` when you pull the latest version
down.
+## Becoming admin
+
+After setting up meta.sr.ht and registering yourself a user account, you can
+give that account admin permissions:
+
+ $ python3
+ >>> from metasrht.app import db, User, UserType
+ >>> u = User.query.filter_by(username='[your username]').one()
+ >>> u.user_type = UserType.admin
+ >>> User.query.session.commit()
+
# Compile static assets
This step is only necessary for users configuring sr.ht from source. Run `make`
-in the root of the repository to compile static assets.
+in the root of the repository to compile static assets. `setup.py` will usually
+do this for you.
# Start the service