mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +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]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
TimeoutStartSec=infinity
|
TimeoutStartSec=infinity
|
||||||
|
Environment=LINUXBREWUSER=root
|
||||||
Environment=LINUXBREWGROUP=wheel
|
Environment=LINUXBREWGROUP=wheel
|
||||||
ExecStartPre=-/usr/bin/echo 1 > /sys/devices/system/cpu/microcode/reload
|
ExecStartPre=-/usr/bin/echo 1 > /sys/devices/system/cpu/microcode/reload
|
||||||
# - means it can fail, without failing those after it.
|
# - 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 chrony.service
|
||||||
ExecStart=-/usr/bin/systemctl enable --now chronyd.service
|
ExecStart=-/usr/bin/systemctl enable --now chronyd.service
|
||||||
ExecStart=-/usr/bin/systemctl enable --now systemd-oomd.service systemd-oomd.socket
|
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/chmod -R u+rw,g+rw,o+r /home/linuxbrew
|
||||||
ExecStart=-/bin/setfacl -R -m g:${LINUXBREWGROUP}:rwX,o:rX /home/linuxbrew
|
ExecStart=-/bin/setfacl -R -m g:${LINUXBREWGROUP}:rwX,o:rX /home/linuxbrew
|
||||||
User=root
|
User=root
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# in case linuxbrew users have a group separate from wheel, this is the place
|
# in case linuxbrew users have a group separate from wheel, this is the place
|
||||||
# to specify it.
|
# to specify it.
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=LINUXBREWUSER=
|
||||||
|
Environment=LINUXBREWUSER=root
|
||||||
Environment=LINUXBREWGROUP=
|
Environment=LINUXBREWGROUP=
|
||||||
Environment=LINUXBREWGROUP=linuxbrew
|
Environment=LINUXBREWGROUP=linuxbrew
|
||||||
|
Loading…
Reference in New Issue
Block a user