From 086487e1ffdc791513b3c240a9fede2208796fc8 Mon Sep 17 00:00:00 2001 From: Matthias Berner Date: Wed, 5 Jul 2023 18:18:08 +0200 Subject: [PATCH] partly postgres update --- Bastillefile | 2 +- README.md | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Bastillefile b/Bastillefile index b6a3d4f..9379325 100644 --- a/Bastillefile +++ b/Bastillefile @@ -1,4 +1,4 @@ -PKG py39-pip py39-pikepdf py39-scikit-learn liberation-fonts-ttf imagemagick7 zbar unpaper icc-profiles-adobe-cs4 qpdf leptonica pngquant lzlib tesseract redis git mysql80-client mysql80-server py39-psycopg2 cmake py39-scipy gcc rust gnupg py39-pyinotify py39-sqlite3 libxml2 libxslt expect curl +PKG py39-pip py39-pikepdf py39-scikit-learn liberation-fonts-ttf imagemagick7 zbar unpaper icc-profiles-adobe-cs4 qpdf leptonica pngquant lzlib tesseract redis git mysql80-client mysql80-server py39-psycopg2 cmake py39-scipy gcc rust gnupg py39-pyinotify py39-sqlite3 libxml2 libxslt expect curl postgresql13-server sudo SYSRC redis_enable="YES" SERVICE redis start diff --git a/README.md b/README.md index 6a7b66e..7ee87c8 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,22 @@ Artifact file(s) for Paperless NGX iocage plugin -After install, the admin username and password are both "admin". Please change at first login for security reasons. The web portal for paperless-ngx will be the jail ip address and port 8000. More information on paperless-ngx can be found at https://paperless-ngx.readthedocs.io/en/latest/index.html. \ No newline at end of file +After install, the admin username and password are both "admin". Please change at first login for security reasons. The web portal for paperless-ngx will be the jail ip address and port 8000. More information on paperless-ngx can be found at https://paperless-ngx.readthedocs.io/en/latest/index.html. + + + + +allow.sysvipc = 1; +postgresql13-server sudo + +/usr/local/etc/rc.d/postgresql initdb + +postgresql_enable="YES" + +psql -c "alter user postgres with password 'password'" + +psql CREATE USER paperless CREATEDB; CREATE DATABASE paperless; GRANT ALL PRIVILEGES ON DATABASE paperless TO paperless; + +psql -U postgres -c "CREATE DATABASE paperless;" +psql -U postgres -c "CREATE USER paperless WITH password 'paperless';" +psql -U postgres -c "GRANT ALL privileges ON DATABASE paperless TO paperless;" \ No newline at end of file