Disable rpc for instance gen
authorrinpatch <rinpatch@sdf.org>
Thu, 20 Jun 2019 15:27:17 +0000 (18:27 +0300)
committerrinpatch <rinpatch@sdf.org>
Thu, 20 Jun 2019 15:28:56 +0000 (18:28 +0300)
rel/files/bin/pleroma_ctl

index 62368115e565fb7116d8b62e34b67505e3359078..b0e1874a98c53752c5e5bdb6f6f47f8babd1f8b2 100755 (executable)
@@ -110,7 +110,7 @@ else
 
        if [ "$1" = "update" ]; then
                update "$2"
-       elif [ "$1" = "migrate" ] || [ "$1" = "rollback" ] || [ "$1" = "create" ] || [ -n "$PLEROMA_CTL_RPC_DISABLED" ]; then
+       elif [ "$1" = "migrate" ] || [ "$1" = "rollback" ] || [ "$1" = "create" ] || [ "$1 $2" = "instance gen" ] || [ -n "$PLEROMA_CTL_RPC_DISABLED" ]; then
                "$SCRIPTPATH"/pleroma eval 'Pleroma.ReleaseTasks.run("'"$*"'")'
        else
                "$SCRIPTPATH"/pleroma rpc 'Pleroma.ReleaseTasks.run("'"$*"'")'