Mastodon: Add postgresql config

This commit is contained in:
Benoit 2024-10-11 18:58:28 +09:00
parent 3436125897
commit 45c6b7c542
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA
3 changed files with 30 additions and 4 deletions

View file

@ -12,7 +12,7 @@ echo "deb [signed-by=/usr/share/keyrings/postgresql.asc] http://apt.postgresql.o
# System packages
apt update
apt install -y \
imagemagick ffmpeg libvips-tools libpq-dev libxml2-dev libxslt1-dev file git-core \
imagemagick libvips-tools libpq-dev libxml2-dev libxslt1-dev file git-core \
g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf \
bison build-essential libssl-dev libyaml-dev libreadline6-dev \
zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \
@ -25,4 +25,5 @@ useradd -m -s /bin/bash mastodon
passwd -d mastodon
# Postgresql
su - postgres -c "psql -c 'CREATE USER mastodon CREATEDB;'"
cat /tmp/postgresql.conf >> /etc/postgresql/17/main/postgresql.conf
exit 0