Romain Tartière
157125c4af
Relax validation of -BETA / -RC releases
...
Accross the code, release names are checked against some variation of
-BETAx / -RCx which are inconsistent in the range of accepted values for
`x`.
As a consequence, some commands cannot be successfuly run while they
are valid, e.g. `bastille create test 14.0-RC4 10.0.0.2` is rejected
because only `*-RC1` and `*-RC2` are accepted as a RC release name.
Find out these lists of specific BETA and RC patterns and adjust them to
allow any one-digit value at the end. We generaly do up to 4 BETA / RC
releases, so a one digit limit is probably enough for the time being.
2023-11-10 08:09:51 -10:00
Christer Edwards
4efcc5021c
update copyright dates
2023-07-14 21:02:14 -06:00
Lars Engels
64c3b6045e
Allow running bastille and subcomands with help flags as regular user
2023-03-16 20:58:11 +01:00
William Erik Baxter
ec18847f3e
Fix bug in ip-in-use test
...
Need grep -wF instead of grep -w for IP test to avoid spurious match
against broadcast address in ifconfig output.
2022-12-04 05:47:15 -06:00
JRGTH
74b6eb76e7
Update the exec.* with uniq_epair when cloning jails
...
This update will fix the startup error after cloning a jail, this was because the exec.prestart/poststop not being properly updated.
2022-07-14 21:41:52 -04:00
Christer Edwards
aafc2b3323
0.9.20220216 release
2022-02-16 23:28:09 -07:00
Theo BERTIN
6ca0369072
CLONE.SH::ADDED:: Complete FSTAB_RELEASE grep from fstab to get all release names
...
some release names (such as 14.0-CURRENT) were not correctly extracted from the fstab during fstab modification
2022-02-11 10:16:59 +01:00
Theo BERTIN
66d830a55f
CLONE.SH::ADDED:: update fstab paths with new jail path
2022-02-11 09:41:02 +01:00
Christer Edwards
faf3b2b691
use full path when calling jls binary
2021-12-17 19:09:49 -07:00
Théo Bertin
35938461d4
CLONE.SH::FIXED:: ensure release grep in update_fstab only returns the release name once
...
Situations could happen when release name could match several times (if jail name contains release name for example)
2021-09-11 12:50:55 +02:00
Théo Bertin
b0c5a61d4a
CLONE.SH::FIXED:: remove duplicate match group in release grep during fstab updating
2021-09-11 12:42:17 +02:00
Christer Edwards
6fa744bbda
update 2021 copyright
2021-01-15 20:00:26 -07:00
Chris Wells
8b4d18f8f3
Create info() and warn() for cleaner print statements.
2020-11-25 21:19:08 -05:00
Jose
855dcf3eae
Fix to use SYNCDHCP by default while cloning jails
2020-10-17 17:34:25 -04:00
Chris Wells
c6aded8d0a
Ensure target is specified and exists in 1 place instead of many.
...
Require target to be running for commands that need it.
Closes #239 .
2020-08-30 20:15:22 -04:00
Chris Wells
aaffc882f9
Create and leverage global error functions
2020-08-30 10:57:14 -04:00
Jose
3c19c5b183
Initial alternate architecture fetch/create support
2020-07-24 10:47:28 -04:00
Jose
00443ccdd1
Destroy related datasets on target, simplify snapshot naming
2020-04-09 06:32:00 -04:00
Jose
d4dc133e19
Revert to recursive, mandatory here
2020-04-08 23:33:43 -04:00
Jose
4788e78436
Code cleanup, don't delete snapshot recursively
2020-04-08 23:21:13 -04:00
Bike Dude
ed90760f68
several fixes
2020-03-06 23:12:09 +01:00
hackacad
bc82da9aaa
[NEW FEATURE] clone.sh
2020-03-04 10:52:17 +01:00