diff options
| author | rinpatch <rinpatch@sdf.org> | 2019-06-20 11:51:16 +0300 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2019-06-20 11:51:16 +0300 |
| commit | 45c67550f548289004506367df51a68c2782d70f (patch) | |
| tree | f578d41819a3c308f5795e70459b63ae73d7fa82 /rel/pleroma_ctl | |
| parent | 69070e641d9390a2ae46946c16f82e8b737942da (diff) | |
| parent | ba584364e905531417dae2e07675dbbf60c3a007 (diff) | |
| download | pleroma-45c67550f548289004506367df51a68c2782d70f.tar.gz pleroma-45c67550f548289004506367df51a68c2782d70f.zip | |
Merge branch 'develop' into fix/config-gen-releases
Diffstat (limited to 'rel/pleroma_ctl')
| -rwxr-xr-x | rel/pleroma_ctl | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/rel/pleroma_ctl b/rel/pleroma_ctl deleted file mode 100755 index ac7339762..000000000 --- a/rel/pleroma_ctl +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# XXX: This should be removed when elixir's releases get custom command support -if [ -z "$1" ] || [ "$1" = "help" ]; then - echo "Usage: $(basename "$0") COMMAND [ARGS] - - The known commands are: - - create Create database schema (needs to be executed only once) - migrate Execute database migrations (needs to be done after updates) - rollback [VERSION] Rollback database migrations (needs to be done before downgrading) - - and any mix tasks under Pleroma namespace, for example \`mix pleroma.user COMMAND\` is - equivalent to \`$(basename "$0") user COMMAND\` - - By default pleroma_ctl will try calling into a running instance to execute non migration-related commands, - if for some reason this is undesired, set PLEROMA_CTL_RPC_DISABLED environment variable -" -else - SCRIPT=$(readlink -f "$0") - SCRIPTPATH=$(dirname "$SCRIPT") - if [ "$1" = "migrate" ] || [ "$1" = "rollback" ] || [ "$1" = "create" ] || [ -n "$PLEROMA_CTL_RPC_DISABLED" ]; then - "$SCRIPTPATH"/pleroma eval 'Pleroma.ReleaseTasks.run("'"$*"'")' - else - "$SCRIPTPATH"/pleroma rpc 'Pleroma.ReleaseTasks.run("'"$*"'")' - fi -fi |
