diff --git a/abra.sh b/abra.sh new file mode 100644 index 0000000..271489a --- /dev/null +++ b/abra.sh @@ -0,0 +1,9 @@ +export APP_ENTRYPOINT_VERSION=v1 + +create_admin(){ + # if [ -z "$1" ]; then + # echo "Usage: ... create_admin " + # exit 1 + # fi + mobilizon_ctl users.new "$1" --admin --password "$2" +} \ No newline at end of file diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl new file mode 100644 index 0000000..f302936 --- /dev/null +++ b/entrypoint.sh.tmpl @@ -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