Set user, group and mode for /etc/systemd
authorDarshaka Pathirana <dpat@syn-net.org>
Sat, 19 Nov 2016 01:10:59 +0000 (02:10 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 13 Jan 2017 14:04:37 +0000 (15:04 +0100)
Set ownership and permission of all files copied to /etc/systemd to
root:root and 0644. Previously the files did belong to grml:grml.

etc/grml/fai/config/scripts/GRMLBASE/15-initsetup

index ba29908..4d9acfc 100755 (executable)
@@ -11,7 +11,7 @@ set -e
 . "$GRML_LIVE_CONFIG"
 
 systemd_setup() {
-  fcopy -i -B -v -r /etc/systemd
+  fcopy -M -i -B -v -r /etc/systemd
 
   echo "Enabling user '$USERNAME' for autologin"
   sed -i "s/\$USERNAME/$USERNAME/" "$target"/etc/systemd/system/getty@tty*.service.d/override.conf