BastilleBSD / bastille

Bastille is an open-source system for automating deployment and management of containerized applications on FreeBSD.
https://bastillebsd.org
BSD 3-Clause "New" or "Revised" License
858 stars 139 forks source link

[BUG] "bastille-setup" fails at config when installed from PKG #718

Closed LightBusterX closed 1 month ago

LightBusterX commented 2 months ago

When using "bastille-setup" as root, right after installing, it fails at config, because it's searching for itself in the wrong folder.

[MANDATORY] Bastille and FreeBSD version (paste bastille -v && freebsd-version -kru output) 0.10.20231125 14.1-RELEASE-p3 14.1-RELEASE-p3 14.1-RELEASE-p3

[MANDATORY] How did you install bastille? (port/pkg/git) By using "sudo pkg install bastille"

[optional] Steps to reproduce? Just typing "sudo bastille setup" right after "sudo pkg install bastille"

[optional] Expected behavior I suppose to not fail trying to search for "/usr/local/bastille" when "which bastille" is returning "/usr/local/bin/bastille". Also it fails when configuring pf, not before.

[optional] Screenshots If applicable, add screenshots to help explain your problem.

[optional] Additional context This has been tried in a VM with FreeBSD 14.1-RELEASE inside a Ubuntu 22.04 host with KVM.

Dieken commented 1 month ago

Fixed in https://github.com/BastilleBSD/bastille/commit/19c8c021c4359a917683a74828427cfab5fa4047 but not released to FreeBSD ports tree.

Dieken commented 1 month ago

@yaazkal could you release a new version?

yaazkal commented 1 month ago

@LightBusterX until @cedwards is able to do a new release, you can install Bastille using this repository as this has been already solved.