Werk #7648: Fix fstab appending when file does not end with a newline

Komponente Site management
Titel Fix fstab appending when file does not end with a newline
Datum 11.05.2017
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.5.0i1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

When a new site is created an entry for the tmpfs of the site is appended to the /etc/fstab. In case the last entry of the file did not end with a newline character the appending of this tmpfs entry resulted in a broken line.

We now check the previous entry ends with a newline char and ensure it is separated with a newline char correctly.

Zur Liste aller Werks