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