def METHOD_NAME(self, mod_name: str, temp: bool) -> None:
    """Assumes mods-available, mods-enabled layout."""
    # Generate reversal command.
    # Try to be safe here... check that we can probably reverse before
    # applying enmod command
    if (self.options.dismod is None or self.options.enmod is None
            or not util.exe_exists(self.options.dismod)):
        raise errors.MisconfigurationError(
            "Unable to find a2dismod, please make sure a2enmod and "
            "a2dismod are configured correctly for certbot.")
    self.reverter.register_undo_command(temp, [self.options.dismod, "-f", mod_name])
    util.run_script([self.options.enmod, mod_name])