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

dion at linutronix.de dion at linutronix.de
Fri May 17 16:36:58 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<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>
---
 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