cronish: ensure root home executability for symlinks pointing there if other permissions allow

This commit is contained in:
Aminda Suomalainen 2025-06-05 11:46:07 +03:00
parent 7a16607e5f
commit 827e7ec01a
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Environment=LINUXBREWGROUP=wheel
# Remember `systemd-path search-binaries-default` # Remember `systemd-path search-binaries-default`
ExecStartPre=-echo 1 > /sys/devices/system/cpu/microcode/reload ExecStartPre=-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.
ExecStartPre=-chmod a+x /root /var/roothome
# These aren't given --now as THEY WOULD INFINITE LOOP. # These aren't given --now as THEY WOULD INFINITE LOOP.
ExecStartPre=-systemctl enable aminda-nocron-rebootish.service ExecStartPre=-systemctl enable aminda-nocron-rebootish.service
ExecStartPre=-systemctl enable aminda-nocron-rebootish.timer ExecStartPre=-systemctl enable aminda-nocron-rebootish.timer

View File

@ -1,3 +1,6 @@
# symlinks to root home
@reboot /usr/bin/chmod a+x /root /var/roothome >/dev/null 2>&1
# Workaround it appearing to break SSH especially on family PC # Workaround it appearing to break SSH especially on family PC
@reboot /bin/bash -c "/bin/nordvpn set killswitch off;/usr/bin/systemctl disable --now nordvpnd.{service.socket} --quiet" @reboot /bin/bash -c "/bin/nordvpn set killswitch off;/usr/bin/systemctl disable --now nordvpnd.{service.socket} --quiet"