From 9d2d1da7c2d45f6952b69830f0916e1740b9ec08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Fri, 18 Jun 2021 15:37:39 +0200 Subject: [PATCH] installation to create the database If the database does not exist prior to the installation of authentic2, it will fail because /usr/bin/authentic2-manage migrate --noinput has nothing to work with. License MIT --- installation.rst | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/installation.rst b/installation.rst index 63cbdfc..88dc004 100644 --- a/installation.rst +++ b/installation.rst @@ -8,11 +8,37 @@ Installation $ wget -O - https://deb.entrouvert.org/entrouvert.gpg | apt-key add - $ echo deb http://deb.entrouvert.org/ buster main >> /etc/apt/sources.list + $ apt update -2. Install the package:: +2. Create the database:: + + $ apt install apg + $ PASSWORD=$(apg -n 1 -M NCL -m 20) + $ apt install postgresql + $ su - postgres -c psql < /etc/authentic2/settings.d/database.py <`__.