From 17cbfdd243958f8d7ead29db08107d49ab8fac73 Mon Sep 17 00:00:00 2001 From: dnkmmr <104856296+dnkmmr69420@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:32:05 -0500 Subject: [PATCH] Update init-brew --- bin/init-brew | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/init-brew b/bin/init-brew index b32ebce..77fa3fd 100755 --- a/bin/init-brew +++ b/bin/init-brew @@ -10,6 +10,12 @@ if test ! -f /home/linuxbrew/.linuxbrew/bin/brew; then sudo chown $USER:$USER /home/linuxbrew fi +if test ! -f "$HOME/.config/systemd/user/brew-container.service; then + mkdir -p "$HOME/.config/systemd/user + cp /usr/local/lib/cbrew/brew-container.service "$HOME/.config/systemd/user/brew-container.service + distrobox-host-exec -Y systemctl enable --user --now brew-container.service +fi + [ -f /run/host/usr/bin/docker ] && sudo ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker || sudo rm -f /usr/local/bin/docker [ -f /run/host/usr/bin/flatpak ] && sudo ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak || sudo rm -f /usr/local/bin/flatpak [ -f /run/host/usr/bin/podman ] && sudo ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman || sudo rm -f /usr/local/bin/podman