mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
Ensure /var/log/journal permission bits are set
Ensure permission bits are (re)set on each system activation with explicit chmod call. mkdir -m MODE PATH will only set the permission bits if PATH is *created*, which means users that have old NixOS versions will continue to have the old 700 permissions on /var/log/journal until they chmod manually. With this commit the permissions will be set to 755 on system activation.
This commit is contained in:
parent
38a4d6d6d7
commit
8d596006dd
@ -563,7 +563,9 @@ in
|
||||
|
||||
system.activationScripts.systemd = stringAfter [ "groups" ]
|
||||
''
|
||||
mkdir -m 0755 -p /var/lib/udev /var/log/journal
|
||||
mkdir -m 0755 -p /var/lib/udev
|
||||
mkdir -p /var/log/journal
|
||||
chmod 0755 /var/log/journal
|
||||
|
||||
# Regenerate the hardware database /var/lib/udev/hwdb.bin
|
||||
# whenever systemd changes.
|
||||
|
Loading…
Reference in New Issue
Block a user