aboutsummaryrefslogtreecommitdiff
path: root/lib/mix
AgeCommit message (Collapse)Author
2020-12-12instance.gen: Warn that stripping exif requires exiftoolrinpatch
And default to no if it is not installed Closes #2343
2020-12-12instance.gen task: Only show files which will be actually overwrittenrinpatch
2020-12-07Merge branch 'feature/configdb-mix-tasks' into 'develop'lain
Add mix tasks to give additional ConfigDB recovery and debugging options See merge request pleroma/pleroma!3174
2020-12-07Print out settings that will be removed when specifying the group and key ↵Mark Felder
for consistency Fix error message when specified key doesn't exist
2020-12-07FormattingMark Felder
2020-12-07Apply 1 suggestion(s) to 1 file(s)feld
2020-12-06[#3174] Refactoring: ConfigDB fetching functions, ConfigDB tests.Ivan Tashkinov
Minor fixes.
2020-12-04shell_yes?/1 was not showing the correct message and always defaults to yes ↵Mark Felder
which is dangerous
2020-12-04More compact representationMark Felder
2020-12-04Ensure deleting entire group prints out settings that will be removed before ↵Mark Felder
actually removing them
2020-12-04Fix deleting an entire group. Also utilize Pleroma.ConfigDB.delete/1Mark Felder
2020-12-04Use Pleroma.ConfigDB.delete/1 instead of rolling our ownMark Felder
2020-12-04Use Enum.any? to ensure we return true if there are resultsMark Felder
2020-12-03config_db search methodsAlexander Strizhakov
2020-12-03dump_key/2 no longer usedMark Felder
2020-12-03Apply 6 suggestion(s) to 1 file(s)feld
2020-12-03CredoMark Felder
2020-12-02Make the --force flag for reset command consistent with the others and ↵Mark Felder
deduplicate db truncation
2020-12-02Add --force flag for delete and reset commandsMark Felder
Bunch of reorganization and consolidation
2020-12-02Add comment for this mysterious behaviorMark Felder
2020-12-02No need for a separate functions hereMark Felder
2020-12-02Use a callback strategy to short circuit the functions and print a nice errorMark Felder
2020-12-02Centralize check that configdb is enabled which now raises an exceptionMark Felder
2020-12-02Left public during debuggingMark Felder
2020-12-02Use inspect instead of faking the outputMark Felder
2020-12-02Remove unnecessary keys commandMark Felder
2020-12-02Ensure scary warning starts on a new lineMark Felder
2020-12-02Print whole config when resetting and include a scary looking message.Mark Felder
2020-12-02Both are really atomsMark Felder
2020-12-02Transform strings to atoms for all cases, including when the atom is a ↵Mark Felder
module like Pleroma.Emails.Mailer
2020-12-02Support atoms and strings as args to the mix taskMark Felder
Improve output. Show the user what will be deleted before the prompt.
2020-12-02Fix deletion regression due to strings instead of atomsMark Felder
Improve message after successful deletion
2020-12-02Improve dumping groups and specific keys; add prompts for delete and resetMark Felder
2020-12-02Support listing groups, listing keys in a group, and dumping the config ↵Mark Felder
based on group or specific key in that group
2020-12-02Sort output by groupMark Felder
Not the best sorting, but better than nothing.
2020-12-02Rename keys to groupsMark Felder
2020-12-02Document how to delete individual configuration groups and completely reset ↵Mark Felder
the config without SQL
2020-12-02Better deletion messageMark Felder
2020-12-02Add mix tasks to give additional recovery and debugging optionsMark Felder
- pleroma.config dump: prints the entire config as it would be exported to the filesystem - pleroma.config dump KEY: prints the configuration under a specific ConfigDB key in the database - pleroma.config keylist: lists the available keys in ConfigDB - pleroma.config keydel KEY: deletes ConfigDB entry stored under the key This should prevent the need for users to manually execute SQL queries.
2020-11-25Prevent mix tasks from spewing any internal logging unless DEBUG is in the envMark Felder
e.g., DEBUG=1 mix pleroma.config migrate_from_db
2020-11-21Merge remote-tracking branch 'upstream/develop' into registration-workflowAlex Gleason
2020-11-20start limiters in mix tasksAlexander Strizhakov
2020-11-18Merge branch 'fix/mix-task-user-delete_activities' into 'develop'feld
Fix mix pleroma.user delete_activities task See merge request pleroma/pleroma!3156
2020-11-17Need to start web_resp cache or mix task failsMark Felder
2020-11-17Merge branch 'develop' into frontend-admin-apiEgor Kislitsyn
2020-11-14Merge remote-tracking branch 'upstream/develop' into registration-workflowAlex Gleason
2020-11-14pleroma.instance: Fix Exiftool module nameHaelwenn (lanodan) Monnier
2020-11-11Merge branch 'develop' into frontend-admin-apiEgor Kislitsyn
2020-11-08Remove release_envrinpatch
While taking a final look at instance.gen before releasing I noticed that the release_env task outputs messages in broken english. Upon further inspection it seems to have even more severe issues which, in my opinion, warrant it's at least temporary removal: - We do not explain what it actually does, anywhere. Neither the task docs nor instance.gen, nor installation instructions. - It does not respect FHS on OTP releases (uses /opt/pleroma/config even though we store the config in /etc/pleroma/config.exs). - It doesn't work on OTP releases, which is the main reason it exists. Neither systemd nor openrc service files for OTP include it. - It is not mentioned in install guides other than the ones for Debian and OTP releases.
2020-10-27Add an API endpoint to install a new frontendEgor Kislitsyn