From 3d4c99b96c8f213fc5de0593f4306fc7f1307472 Mon Sep 17 00:00:00 2001 From: pitchum Date: Sat, 9 Mar 2024 11:42:41 +0000 Subject: [PATCH] Add some docs. --- debian/README.Debian | 6 ------ debian/README.Debian.md | 12 ++++++++++++ debian/README.packaging.md | 12 ++++++++++++ debian/README.source | 10 ---------- debian/mobilizon-docs.docs | 4 ++-- debian/templates | 4 ++-- 6 files changed, 28 insertions(+), 20 deletions(-) delete mode 100644 debian/README.Debian create mode 100644 debian/README.Debian.md create mode 100644 debian/README.packaging.md delete mode 100644 debian/README.source diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index cfaee9b4..00000000 --- a/debian/README.Debian +++ /dev/null @@ -1,6 +0,0 @@ -mobilizon for Debian -------------------- - - - - -- unknown Sat, 13 Jan 2024 13:54:48 +0000 diff --git a/debian/README.Debian.md b/debian/README.Debian.md new file mode 100644 index 00000000..dbd6fa26 --- /dev/null +++ b/debian/README.Debian.md @@ -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" +``` diff --git a/debian/README.packaging.md b/debian/README.packaging.md new file mode 100644 index 00000000..06e5b7ae --- /dev/null +++ b/debian/README.packaging.md @@ -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 + diff --git a/debian/README.source b/debian/README.source deleted file mode 100644 index fa48f99c..00000000 --- a/debian/README.source +++ /dev/null @@ -1,10 +0,0 @@ -mobilizon for Debian -------------------- - - - - - - -- unknown Sat, 13 Jan 2024 13:54:48 +0000 - diff --git a/debian/mobilizon-docs.docs b/debian/mobilizon-docs.docs index efea0a6a..c65f79b5 100644 --- a/debian/mobilizon-docs.docs +++ b/debian/mobilizon-docs.docs @@ -1,2 +1,2 @@ -README.Debian -README.source +debian/README.Debian.md +debian/README.packaging.md diff --git a/debian/templates b/debian/templates index 2c14083b..e74b5502 100644 --- a/debian/templates +++ b/debian/templates @@ -20,13 +20,13 @@ Description: Mobilizon's Postgresql database host Template: mobilizon/db_name Type: string -Default: mobilizon +Default: mobilizon_prod Description: Mobilizon's Postgresql database name Specify the name of the postgresql database. Template: mobilizon/db_username Type: string -Default: mobilizon +Default: mobilizon_user Description: Mobilizon's Postgresql database username Specify the username to connect to the postgresql database.