[elbe-devel] [PATCH v3 5/6] Add finetuning 'add <file>' examples
Torben Hohn
torben.hohn at linutronix.de
Wed May 22 16:32:45 CEST 2019
On Tue, May 21, 2019 at 02:47:19PM +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"
>
> f:/etc/apache2/sites-avaible/mysite-------------------------
> <VirtualHost *:80>
> ServerName MyServer
> ServerAdmin admin at host.org
>
> \# And so on...
> </VirtualHost><EOF>
> ------------------------------------------------------------
>
> fstab
> =====
> A swap partition should be add to the list of mount in fstab
>
> f:/etc/fstab------------------------------------------------
> LABEL=rfs / ext4 defaults 0 0
> \# <file system> <dir> <type> <options> <dump> <pass>
> \# /dev/sda3
> UUID=9ac83c42-4bc3-dead-beef-5887ced44418 none swap default
> <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>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
> ---
> examples/includes/devel/finetuning.xml | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/examples/includes/devel/finetuning.xml b/examples/includes/devel/finetuning.xml
> index 457a8af5..dd99af9b 100644
> --- a/examples/includes/devel/finetuning.xml
> +++ b/examples/includes/devel/finetuning.xml
> @@ -2,4 +2,22 @@
> <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"><![CDATA[
> + <VirtualHost *:80>
> + ServerName MyServer
> + ServerAdmin admin at host.org
> +
> + # And so on...
> + </VirtualHost>
> + ]]></file>
> + <file dst="/etc/fstab" append="true"><![CDATA[
> + # <file system> <dir> <type> <options> <dump> <pass>
> +
> + ]]></file>
> + <file dst="/etc/fstab" append="true">
> + # /dev/sda3
> + UUID=9ac83c42-4bc3-dead-beef-5887ced44418 none swap default
> +
> + </file>
> </finetuning>
> --
> 2.21.0
>
--
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