[elbe-devel] [PATCH 5/7] Add finetuning 'add <file>' examples
Torben Hohn
torben.hohn at linutronix.de
Fri May 17 14:57:20 CEST 2019
On Fri, May 17, 2019 at 11:16:59AM +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
>
> ------------------------------------------------------------
>
> fstab
> =====
> The content of "/etc/fstab" should be
> ------------------------------------------------------------
> LABEL=rfs / ext4 defaults 0 0
>
> # foo
>
> # bar
>
> ------------------------------------------------------------
>
> Signed-off-by: Olivier Dion <dion at linutronix.de>
> ---
> 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>
here is some whitespace before </file> that will also get included,
right ?
the example shoud be clear here, that there must not be indention, if
the whitespace is not wanted. How about defaulting to stripping that ?
> + <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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190517/977293b5/attachment.sig>
More information about the elbe-devel
mailing list