Add some docs.

This commit is contained in:
pitchum 2024-03-09 11:42:41 +00:00
parent 8aeddc0b85
commit 3d4c99b96c
6 changed files with 28 additions and 20 deletions

View File

@ -1,6 +0,0 @@
mobilizon for Debian
-------------------
<Possible notes regarding this package - if none, delete this file.>
-- unknown <pitchum@unknown> Sat, 13 Jan 2024 13:54:48 +0000

12
debian/README.Debian.md vendored Normal file
View File

@ -0,0 +1,12 @@
mobilizon for Debian
--------------------
## Initialize postgresql database
```
sudo -Hiu postgres createuser --pwprompt mobilizon_user
sudo -Hiu postgres createdb -O mobilizon_user mobilizon_prod
sudo -Hiu postgres psql -d mobilizon_prod -c "CREATE EXTENSION postgis"
sudo -Hiu postgres psql -d mobilizon_prod -c "CREATE EXTENSION pg_trgm"
sudo -Hiu postgres psql -d mobilizon_prod -c "CREATE EXTENSION unaccent"
```

12
debian/README.packaging.md vendored Normal file
View File

@ -0,0 +1,12 @@
# Build a Debian package for mobilizon
## The first time
```
git remote add upstream https://framagit.org/framasoft/mobilizon.git
git fetch --all
```
## Build a release

10
debian/README.source vendored
View File

@ -1,10 +0,0 @@
mobilizon for Debian
-------------------
<This file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file.>
-- unknown <pitchum@unknown> Sat, 13 Jan 2024 13:54:48 +0000

View File

@ -1,2 +1,2 @@
README.Debian debian/README.Debian.md
README.source debian/README.packaging.md

4
debian/templates vendored
View File

@ -20,13 +20,13 @@ Description: Mobilizon's Postgresql database host
Template: mobilizon/db_name Template: mobilizon/db_name
Type: string Type: string
Default: mobilizon Default: mobilizon_prod
Description: Mobilizon's Postgresql database name Description: Mobilizon's Postgresql database name
Specify the name of the postgresql database. Specify the name of the postgresql database.
Template: mobilizon/db_username Template: mobilizon/db_username
Type: string Type: string
Default: mobilizon Default: mobilizon_user
Description: Mobilizon's Postgresql database username Description: Mobilizon's Postgresql database username
Specify the username to connect to the postgresql database. Specify the username to connect to the postgresql database.