mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
aminda-nocron-reboot: allow overriding linuxbrew user as well
This commit is contained in:
parent
49abe98648
commit
37bb05fdc9
@ -5,6 +5,7 @@ Wants=sysctl-p--system.service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
TimeoutStartSec=infinity
|
||||
Environment=LINUXBREWUSER=root
|
||||
Environment=LINUXBREWGROUP=wheel
|
||||
ExecStartPre=-/usr/bin/echo 1 > /sys/devices/system/cpu/microcode/reload
|
||||
# - means it can fail, without failing those after it.
|
||||
@ -49,7 +50,7 @@ ExecStart=-/usr/bin/systemctl enable --now unbound.service
|
||||
ExecStart=-/usr/bin/systemctl enable --now chrony.service
|
||||
ExecStart=-/usr/bin/systemctl enable --now chronyd.service
|
||||
ExecStart=-/usr/bin/systemctl enable --now systemd-oomd.service systemd-oomd.socket
|
||||
ExecStart=-/bin/chown -R root:${LINUXBREWGROUP} /home/linuxbrew -R
|
||||
ExecStart=-/bin/chown -R ${LINUXBREWUSER}:${LINUXBREWGROUP} /home/linuxbrew -R
|
||||
ExecStart=-/bin/chmod -R u+rw,g+rw,o+r /home/linuxbrew
|
||||
ExecStart=-/bin/setfacl -R -m g:${LINUXBREWGROUP}:rwX,o:rX /home/linuxbrew
|
||||
User=root
|
||||
|
@ -1,5 +1,7 @@
|
||||
# in case linuxbrew users have a group separate from wheel, this is the place
|
||||
# to specify it.
|
||||
[Service]
|
||||
Environment=LINUXBREWUSER=
|
||||
Environment=LINUXBREWUSER=root
|
||||
Environment=LINUXBREWGROUP=
|
||||
Environment=LINUXBREWGROUP=linuxbrew
|
||||
|
Loading…
Reference in New Issue
Block a user