Mastodon: Add postgresql config
This commit is contained in:
parent
3436125897
commit
45c6b7c542
3 changed files with 30 additions and 4 deletions
|
@ -10,7 +10,7 @@ VER="${VER//./-}"
|
|||
UPSTREAM_VER="4.3.0"
|
||||
UPSTREAM_VER_DASH="${UPSTREAM_VER//./-}"
|
||||
UPSTREAM_NAME="mastodon"
|
||||
SERIAL="1benoitjpnet"
|
||||
SERIAL="2benoitjpnet"
|
||||
CNAME="$UPSTREAM_NAME-$UPSTREAM_VER_DASH-$SERIAL-$DIST-$VER"
|
||||
ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
|
||||
|
||||
|
@ -32,14 +32,14 @@ incus exec "$CNAME" -- bash -c '
|
|||
lsb-release \
|
||||
ca-certificates
|
||||
'
|
||||
incus file push "$WORKSPACE"/{setup.sh,setup_mastodon.sh} "$CNAME"/tmp/
|
||||
incus file push "$WORKSPACE"/{setup.sh,setup_mastodon.sh,postgresql.conf} \
|
||||
"$CNAME"/tmp/
|
||||
incus exec "$CNAME" -- bash /tmp/setup.sh
|
||||
incus exec "$CNAME" \
|
||||
--user 1001 \
|
||||
--env HOME=/home/mastodon \
|
||||
--force-noninteractive \
|
||||
-- bash /tmp/setup_mastodon.sh
|
||||
incus file push "$WORKSPACE"/postgresql.conf "$CNAME"/etc/postgresql/17/main/postgresql.conf
|
||||
|
||||
# Clean
|
||||
incus exec "$CNAME" -- \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue