Skip to content

Commit

Permalink
Update init-brew
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkmmr69420 authored Apr 12, 2024
1 parent 72ee259 commit 17cbfdd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/init-brew
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17cbfdd

Please sign in to comment.