diff --git a/etc/systemd/system/aminda-nocron-reboot.service b/etc/systemd/system/aminda-nocron-reboot.service index d502cbc3..f6920f8e 100644 --- a/etc/systemd/system/aminda-nocron-reboot.service +++ b/etc/systemd/system/aminda-nocron-reboot.service @@ -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 diff --git a/etc/systemd/system/aminda-nocron-reboot.service.d/linuxbrew-group-override.conf b/etc/systemd/system/aminda-nocron-reboot.service.d/linuxbrew-group-override.conf index 873614aa..6bca7519 100644 --- a/etc/systemd/system/aminda-nocron-reboot.service.d/linuxbrew-group-override.conf +++ b/etc/systemd/system/aminda-nocron-reboot.service.d/linuxbrew-group-override.conf @@ -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