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

dion at linutronix.de dion at linutronix.de
Fri May 17 11:16:59 CEST 2019


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>
+  <file dst="/etc/fstab" append="true">
+    # foo
+  </file>
+  <file dst="/etc/fstab" append="true">
+    # bar
+  </file>
 </finetuning>
-- 
2.21.0




More information about the elbe-devel mailing list