aminda-nocron-reboot.service: attempt to help linuxbrew permissions

This commit is contained in:
Aminda Suomalainen 2024-07-28 13:04:57 +03:00
parent 8ce36b9c9e
commit 391ec83b38
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Wants=sysctl-p--system.service
[Service] [Service]
Type=oneshot Type=oneshot
TimeoutStartSec=infinity TimeoutStartSec=infinity
Environment=LINUXBREWGROUP=wheel
# - means it can fail, without failing those after it. # - means it can fail, without failing those after it.
# These aren't given --now as THEY WOULD INFINITE LOOP. # These aren't given --now as THEY WOULD INFINITE LOOP.
ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.service ExecStartPre=-/usr/bin/systemctl enable aminda-nocron-rebootish.service
@ -37,6 +38,8 @@ ExecStart=-/usr/bin/systemctl enable --now sshguard.service
ExecStart=-/usr/bin/systemctl enable --now unbound.service ExecStart=-/usr/bin/systemctl enable --now unbound.service
ExecStart=-/usr/bin/systemctl enable --now chrony.service ExecStart=-/usr/bin/systemctl enable --now chrony.service
ExecStart=-/usr/bin/systemctl enable --now chronyd.service ExecStart=-/usr/bin/systemctl enable --now chronyd.service
ExecStart=-/bin/chown -R root:$LINUXBREWGROUP /home/linuxbrew -R
ExecStart=-/bin/setfacl -R -m g:$LINUXBREWGROUP:rwx,o:rx /home/linuxbrew
User=root User=root
StandardOutput=journal StandardOutput=journal
StandardError=journal StandardError=journal

View File

@ -0,0 +1,5 @@
# in case linuxbrew users have a group separate from wheel, this is the place
# to specify it.
[Service]
Environment=LINUXBREWGROUP=
Environment=LINUXBREWGROUP=linuxbrew