mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2026-01-01 07:58:11 +01:00
deb-update.bash: throw in linuxbrew-permissions.{service,timer} as well
This commit is contained in:
parent
e7be7df860
commit
7b2ba75adb
@ -76,6 +76,12 @@ if [[ -f /etc/systemd/system/linuxbrew-update.timer && $(id -u) == 0 ]]; then
|
|||||||
if hash systemctl 2> /dev/null; then
|
if hash systemctl 2> /dev/null; then
|
||||||
systemctl enable linuxbrew-update.timer
|
systemctl enable linuxbrew-update.timer
|
||||||
systemctl start linuxbrew-update.service
|
systemctl start linuxbrew-update.service
|
||||||
|
# Technically this should be first, but it's probably rarer than my
|
||||||
|
# above unit and I am yet to experience issues anyway.
|
||||||
|
if [[ -f /etc/systemd/system/linuxbrew-permissions.timer ]]; then
|
||||||
|
systemctl enable linuxbrew-permissions.timer
|
||||||
|
systemctl start linuxbrew-permissions.service
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
elif [[ -d /home/linuxbrew/.linuxbrew/bin && $(id -u) != 0 ]]; then
|
||||||
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user