Jérémy Lecour
779dd9c518
use new conventions
2020-04-02 01:17:11 +02:00
Jérémy Lecour
01cc972d83
rename lib/config to lib/includes
2020-04-02 00:31:57 +02:00
Jérémy Lecour
77d0681d14
refactor init and update subcommands
2020-04-02 00:30:48 +02:00
Jérémy Lecour
e9e8a790ba
refactor check, inc, rm subcommands
...
function extractions
variables extractions
comments
2020-04-01 18:44:38 +02:00
Jérémy Lecour
e7e3683944
fix shellcheck source directive
2020-04-01 11:23:35 +02:00
Jérémy Lecour
018392e8e3
bkctld-rm: add support for the "new" canonical path for incs policy
2020-04-01 09:13:57 +02:00
Jérémy Lecour
a5c0745d09
bkctld-check: use findmnt instead of grep + check "rw" for backup disk
2020-04-01 09:12:40 +02:00
Jérémy Lecour
5cc6d9e28f
bkctld-check: simplify overrides
...
1. add support for the "new" canonical path for jail specific
configurations
2. use a local value in the loop to prevent changing the global default
value
2020-04-01 09:11:56 +02:00
Jérémy Lecour
10cc3695a4
Add some shellcheck directives for config source
2020-04-01 07:31:33 +02:00
Jérémy Lecour
9ae2168b1b
bkctld-list: note for later, try a simpler command
2020-04-01 07:27:43 +02:00
Jérémy Lecour
6cf49b2a8b
bkctld-check: add overrides for "per jail" thresholds
...
Putting values for CRITICAL/WARNING in <JAIL_DIR>/etc/bkctld-check
overrides the values for this specific jail.
Setting to a value <=0 disables the threshold.
2020-04-01 07:27:17 +02:00
Jérémy Lecour
0b5164b91c
Add some shellcheck directives
2020-04-01 07:24:33 +02:00
Jérémy Lecour
14012ca9b0
bkctld-check: fix typos
2020-04-01 07:24:06 +02:00
Jérémy Lecour
1bc5d4ed93
bkctld-check: extract check_jail function
2020-04-01 07:23:23 +02:00
Victor LABORIE
0a6b5c1b80
Do not run inc / rm in background when not using btrfs
2020-03-09 16:08:17 +01:00
Victor LABORIE
ed83404806
Add lock for bkctld inc / rm when not using btrfs ( Fix #32 )
2020-03-05 14:49:25 +01:00
Victor LABORIE
24ffa76dfc
Do not unnecessary use is-on and reload in ip/port/key ( Fix #31 )
2020-02-05 14:58:15 +01:00
Victor LABORIE
ae883e8ed0
Use mktemp for keepfile and rm it after usage ( Fix #9 )
2019-02-18 11:32:28 +01:00
Victor LABORIE
d09d0b0572
Do not create dirs in bkctld script
2019-01-08 16:29:03 +01:00
Victor LABORIE
183bc05ec4
Use bkctld-list script for jails listing
2019-01-08 16:23:46 +01:00
Victor LABORIE
cda35bba6e
Move logging functions into config
2019-01-07 16:57:12 +01:00
Victor LABORIE
91272f49d5
Remove check_jail function
2019-01-07 16:41:29 +01:00
Victor LABORIE
d9f8ae7036
Move check_jail_on functions into bkctld-is-on script
2019-01-07 16:34:44 +01:00
Victor LABORIE
5856cb2011
Fix help output (command can have dash)
2019-01-07 16:33:08 +01:00
Victor LABORIE
41b3536bcf
Remove get_inc function
2019-01-07 16:12:51 +01:00
Victor LABORIE
a028d3abee
Fix typo in bkctld-stats
2019-01-07 16:11:57 +01:00
Victor LABORIE
0272c43751
Move usage functions into bkctld-help script
...
* Usage output is now auto-generated
2019-01-07 14:47:07 +01:00
Victor LABORIE
d0165a9e3c
Move firewall functions into bkctld-firewall script
2019-01-04 16:55:56 +01:00
Victor LABORIE
1522d2f6cd
Merge bkctld-params and some functions into bkctld-(ip|port|key) scripts
2019-01-04 16:39:35 +01:00
Victor LABORIE
6caa9078e6
Parallelize bkctld <subcommand> all
2019-01-04 16:03:33 +01:00
Victor LABORIE
16014f3c4f
Fix typo in bkctld-update
2019-01-04 15:55:34 +01:00
Victor LABORIE
e062a05a4b
Split bkctld into multiples scripts
2019-01-04 13:52:15 +01:00