13 lines
No EOL
600 B
Bash
Executable file
13 lines
No EOL
600 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
mkdir -p pgdata
|
|
|
|
# This is sorta special in that we need the generated_config.exs to make it onto the host
|
|
docker compose run \
|
|
--rm \
|
|
-e "PLEROMA_CTL_RPC_DISABLED=true" \
|
|
akkoma ./bin/pleroma_ctl instance gen --no-sql-user --no-db-creation --dbhost db --dbname akkoma --dbuser akkoma --dbpass akkoma --listen-ip 0.0.0.0 --listen-port 4000 --static-dir /opt/akkoma/instance/ --uploads-dir /opt/akkoma/uploads/ --db-configurable true --output /opt/akkoma/config/generated_config.exs --output-psql /opt/akkoma/config/setup_db.psql
|
|
|
|
echo "Instance generated!" |