add missing abra.sh and entrypoint

This commit is contained in:
Simon 2024-05-24 12:14:01 +02:00
parent a537af6083
commit 1d5b4cb41a
2 changed files with 17 additions and 0 deletions

9
abra.sh Normal file
View File

@ -0,0 +1,9 @@
export APP_ENTRYPOINT_VERSION=v1
create_admin(){
# if [ -z "$1" ]; then
# echo "Usage: ... create_admin <email_address> <password>"
# exit 1
# fi
mobilizon_ctl users.new "$1" --admin --password "$2"
}

8
entrypoint.sh.tmpl Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
export MOBILIZON_INSTANCE_SECRET_KEY_BASE=$(cat run/secrets/secret_key_base)
export MOBILIZON_INSTANCE_SECRET_KEY=$(cat run/secrets/secret_key)
export MOBILIZON_SMTP_PASSWORD=$(cat run/secrets/smtp_password)
export MOBILIZON_DATABASE_PASSWORD=$(cat run/secrets/db_password)
sh -c /docker-entrypoint.sh