Skip to content

Module enable to extend / configure file content #2

@BitFis

Description

@BitFis

Create a module which allows to set specific content of the file, mostly config file.

The module should prefent setting lines multiple times. This should allow to define something as following in the documentation:

Add following line to the /etc/hosts file:

192.0.0.1   example.org

This should now prefent be executable by the bash script and only add 192.0.0.1 example.org if it does not exist
yet, or if specified, look for a defined regex (defined as description) to replace it with the defined line.

General idea:

  1. remove every line matching regex
  2. insert defined line -> preferably at the same location as the regex has removed the line

Most likely dependent on #1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions