Commit Graph

1668 Commits

Author SHA1 Message Date
tschettervictor
741d2c6e12 fix shellcheck 2025-04-16 16:10:09 -06:00
tschettervictor
c2b756219c Force config file in default location
This will prevent errors when bastille gathers the number of epairs on the system.
2025-04-16 16:08:17 -06:00
tschettervictor
0fe4bec89f common: Add function to count epairs 2025-04-16 15:57:07 -06:00
tschettervictor
d5deb9bd1b Fix epair numbering when mixing -V and -B jails on one systme 2025-04-16 12:07:15 -06:00
tschettervictor
dcce58c6d0 list: Retain support for all 2025-04-14 21:31:30 -06:00
tschettervictor
d6db4adc2f Update list.sh 2025-04-14 21:29:54 -06:00
tschettervictor
bddc7dd1cb list: Reverst targeting all jails 2025-04-14 21:22:37 -06:00
tschettervictor
ba1157b732 list: Use priority for list all 2025-04-14 21:05:03 -06:00
tschettervictor
df356fc881 Merge branch 'master' into list-jail-name 2025-04-14 20:55:38 -06:00
tschettervictor
9fe20252d4 list: typo s > sed 2025-04-14 20:52:59 -06:00
tschettervictor
0ea6e1966d list: Properly list jail ip if subnet is included 2025-04-14 20:50:00 -06:00
tschettervictor
8e559b6114 create: Fix jail not applying IP when IP already in use 2025-04-14 20:46:43 -06:00
tschettervictor
12f7cf2027 list: Properly list jail ip on stopped thin jail 2025-04-14 20:34:17 -06:00
tschettervictor
0235148989 list: Fix listing jail IP with / subnet 2025-04-14 20:27:36 -06:00
tschettervictor
bc5160b418 create: Bugfix for attempling to create a -B with non-bridge interface 2025-04-14 15:38:06 -06:00
tschettervictor
4d02ce7e37 htop: Bugfix for binary location 2025-04-13 20:22:10 -06:00
Barry McCormick
07f532dec6 Merge pull request #930 from JRGTH/destroy_cmd_bugfix
Don't delete jail content on error, cleanup
2025-04-11 08:17:49 -07:00
tschettervictor
c57613f9ea list: Retain support if someone specifies -a or all to list all 2025-04-10 16:33:21 -06:00
tschettervictor
01ce1b5e78 list: List all without having to specify -a or all 2025-04-10 16:30:57 -06:00
tschettervictor
37be5e52c8 docs: Once over error correction 2025-04-10 06:53:03 -06:00
JRGTH
a71d55b15e Don't delete jail content on error, cleanup
Don't delete jail content on busy datasets by default, cleanup.
2025-04-09 19:51:54 -04:00
tschettervictor
c57bd98bc1 make shellcheck happy 2025-04-09 09:40:58 -06:00
tschettervictor
6276f56ce1 convert: Allow converting jail to release
#574
2025-04-09 09:35:16 -06:00
tschettervictor
811661dac3 bastille: Allow cp parallel mode 2025-04-06 17:01:32 -06:00
tschettervictor
78e7d881cf bastille: Some commands should not support parallel mode 2025-04-06 16:57:20 -06:00
tschettervictor
c0574c28d0 Implement parallel mode
This PR allows to run commands on multiple jails in parallel. Simply use '-p 3' to set a process limit.

'bastille -p 3 start all' will start all jails but run 3 processes at a time.

This is a very rough implementation, and could be more streamlined, but here it is to test.
2025-04-06 15:52:14 -06:00
Barry McCormick
904f8557c2 Merge pull request #921 from BastilleBSD/console-multiple-targets
console: Allow multiple targets
2025-04-05 20:37:36 -07:00
tschettervictor
752d521c25 upgrade: Check release before jail 2025-04-04 17:37:15 -06:00
tschettervictor
34fa107fcf template: Fix lininfile hook 2025-04-04 16:55:33 -06:00
tschettervictor
323f2fa590 upgrade: Fix bug when upgrading thin jails 2025-04-04 16:15:05 -06:00
tschettervictor
d211c67c0a console: Continue on jail not running 2025-04-04 15:58:46 -06:00
tschettervictor
babdfd7f5b fix shellcheck 2025-04-04 15:57:32 -06:00
tschettervictor
a38a76843a console: Allow multiple targets 2025-04-04 15:55:48 -06:00
tschettervictor
d625486847 list: Fix JSON listing 2025-04-03 16:27:18 -06:00
tschettervictor
8ec3003fe2 list: Do not list Path and Hostname + list Name
#914 

This will now list Name after JID, and will not list Path or Hostname.

I've left the relevant code included in case we want to list it in the future.
2025-04-03 16:23:09 -06:00
tschettervictor
0df4d71807 template: Fix path when using line in file 2025-04-03 00:06:03 -06:00
tschettervictor
2b1d468040 template: Add LINE_IN_FILE as HOOK
#694
2025-04-02 23:48:32 -06:00
tschettervictor
599c7bf3a7 list: Fix listing JSON when multiple IPs 2025-04-02 13:48:36 -06:00
Barry McCormick
aa3baddf64 Merge pull request #910 from BastilleBSD/limits-clear-reset
limits: Add clear, reset, stats, show, add, remove  as commands
2025-04-02 07:46:49 -07:00
tschettervictor
0d2c35d768 limits: Fix action again 2025-03-29 18:23:51 -06:00
tschettervictor
683135b575 limits: Fix action 2025-03-29 18:21:27 -06:00
tschettervictor
b3ae555168 limits: Fix retain when not using add as action 2025-03-29 10:08:57 -06:00
tschettervictor
37b845d462 list: Fix listing all in json 2025-03-28 14:20:35 -06:00
tschettervictor
47624e44ba list: Dont print subnet on DOWN jail IP 2025-03-27 00:01:08 -06:00
tschettervictor
e3dddd25e7 Merge branch 'master' into priority-add 2025-03-26 23:30:38 -06:00
Barry McCormick
ee62485178 Merge pull request #895 from tschettervictor/custom-config
bastille: Support user based config
2025-03-26 22:24:41 -07:00
Barry McCormick
f935cba9f3 Merge pull request #783 from tschettervictor/multiple-interfaces
network: Support adding/removing multiple interfaces in jails
2025-03-26 22:21:29 -07:00
tschettervictor
838ac60147 limits: Fix too few args 2025-03-23 09:02:12 -06:00
tschettervictor
f5cdff4fc1 limits: Retain support for no action (will default to add) 2025-03-23 06:00:09 -06:00
tschettervictor
27beac434e limits: Fix shellcheck again 2025-03-22 23:58:27 -06:00