Skip to content

[BUG][PATCH] Add force option to a2dismod for essential modules #16

@aqueos

Description

@aqueos

hi !

Description
it seems the salt extension cannot uninstall "essential module" like autoindex from apache as a2dismod requires "force" with -f

Setup
use the module to uninstall autoindex
it fails as a2dismod require -f

Steps to Reproduce the behavior
[~]: sudo a2dismod autoindex
WARNING: The following essential module will be disabled.
This might result in unexpected behavior and should NOT be done
unless you know exactly what you are doing!
autoindex

Expected behavior
we should perhaps add a force option to enable it to work on all module :)

here is a suggested patch

saltext-apache-force-a2dismod.patch

best regards,
Ghislain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions