Discussion:
[Trac-dev] Enable & disable plugin from command line
Emerson Castañeda
2017-05-30 01:02:56 UTC
Permalink
Hi

Is there a way to enable and disable a plugin from the command line?

It looks the only way will be by using some scripting to manipulate
trac.ini file to include the required lines.

The idea will be activate the new plugin right after installing it, and
before running `trac-admin` (in order to update database) avoiding
modifying trac.ini manually, instead activate the new plugin automatically
using any available mechanism.


Thanks

MC
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
RjOllos
2017-05-30 01:30:02 UTC
Permalink
Post by Emerson Castañeda
Hi
Is there a way to enable and disable a plugin from the command line?
It looks the only way will be by using some scripting to manipulate
trac.ini file to include the required lines.
The idea will be activate the new plugin right after installing it, and
before running `trac-admin` (in order to update database) avoiding
modifying trac.ini manually, instead activate the new plugin automatically
using any available mechanism.
The only way currently supported is to modify the components section. For
example:

$ trac-admin $env config set components tractags.* enabled

- Ryan
--
You received this message because you are subscribed to the Google Groups "Trac Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+***@googlegroups.com.
To post to this group, send email to trac-***@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...