[elbe-devel] [PATCH v2 5/6] Add finetuning 'add <file>' examples

Torben Hohn torben.hohn at linutronix.de
Tue May 21 10:52:40 CEST 2019


On Fri, May 17, 2019 at 04:36:58PM +0200, dion at linutronix.de wrote:
> From: Olivier Dion <dion at linutronix.de>
> 
> These examples are taken from ticket 1526.
> 
> Apache2 server
> ==============
> A file under "/etc/apache2/sites-avaible/mysite" should be
> created with the following attributes:
> 
> owner: "root"
> group: "www-data"
> mode: "0660"
> 
> The file's content should be
> ------------------------------------------------------------
> \# bla
> blubb = huhu<EOF>
> ------------------------------------------------------------
> 
> fstab
> =====
> The content of "/etc/fstab" should be
> ------------------------------------------------------------
> LABEL=rfs / ext4 defaults 0 0
> \# foo# bar<EOF>
> ------------------------------------------------------------
> 
> NOTE!
> =====
> 
> '\#' is in fact the character '#'.  It's only escaped so Git doesn't
> ignore the line.
> 
> Signed-off-by: Olivier Dion <dion at linutronix.de>

Acked-by: Torben Hohn <torben.hohn at linutronix.de>

not so happy that this is added to some "obscure" include file.
But i am also not aware of file right now.

Maybe you can also come up with something, that makes more sense,
than foo bar, and huhu ;)

like: the comment in /etc/fstab might say, why LABEL=rfs is used,
or how its generated, or what /etc/fstab is.


> ---
>  examples/includes/devel/finetuning.xml | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/examples/includes/devel/finetuning.xml b/examples/includes/devel/finetuning.xml
> index 457a8af5..3464541b 100644
> --- a/examples/includes/devel/finetuning.xml
> +++ b/examples/includes/devel/finetuning.xml
> @@ -2,4 +2,15 @@
>  <finetuning>
>    <adduser shell="/bin/bash" passwd="notsosecure">user</adduser>
>    <rm>var/cache/apt/archives/*.deb</rm>
> +  <file dst="/etc/apache2/sites-available/mysite" owner="root"
> +	group="www-data" mode="0644">
> +    # bla
> +    blubb = huhu
> +  </file>
> +  <file dst="/etc/fstab" append="true">
> +    # foo
> +  </file>
> +  <file dst="/etc/fstab" append="true">
> +    # bar
> +  </file>
>  </finetuning>
> -- 
> 2.21.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list