new upstream release (1.1)
This commit is contained in:
commit
33dc368f38
28
bash_completion
Normal file
28
bash_completion
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# bkctld(8) completion
|
||||||
|
#
|
||||||
|
# Copyright (c) 2017 Victor Laborie <vlaborie@evolix.fr>
|
||||||
|
#
|
||||||
|
|
||||||
|
function _bkctld()
|
||||||
|
{
|
||||||
|
local cur prev commands jails keys
|
||||||
|
|
||||||
|
cur=${COMP_WORDS[COMP_CWORD]};
|
||||||
|
prev=${COMP_WORDS[COMP_CWORD-1]};
|
||||||
|
commands="init update remove start stop reload restart sync status key port ip inc rm"
|
||||||
|
|
||||||
|
if [ $COMP_CWORD -eq 1 ]; then
|
||||||
|
COMPREPLY=($(compgen -W '${commands}' -- ${cur}))
|
||||||
|
elif [ $COMP_CWORD -eq 2 ]; then
|
||||||
|
[ -f /etc/default/bkctld ] && source /etc/default/bkctld
|
||||||
|
[ -z "${JAILDIR}" ] && JAILDIR='/backup/jails'
|
||||||
|
jails=$(ls "${JAILDIR}")
|
||||||
|
COMPREPLY=($(compgen -W "${jails}" -- ${cur}))
|
||||||
|
elif [ $COMP_CWORD -eq 3 ]; then
|
||||||
|
keys=$(ls *.pub)
|
||||||
|
COMPREPLY=($(compgen -W "${keys}" -- ${cur}))
|
||||||
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
|
} &&
|
||||||
|
complete -F _bkctld bkctld
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
bkctld (1.1) unstable; urgency=high
|
||||||
|
|
||||||
|
* Add bash completion
|
||||||
|
|
||||||
|
-- Victor Laborie <vlaborie@evolix.fr> Thu, 02 Feb 2017 18:24:50 +0100
|
||||||
|
|
||||||
bkctld (1.0.2) unstable; urgency=high
|
bkctld (1.0.2) unstable; urgency=high
|
||||||
|
|
||||||
* Fix bkctld sync
|
* Fix bkctld sync
|
||||||
|
|
2
debian/compat
vendored
2
debian/compat
vendored
|
@ -1 +1 @@
|
||||||
7
|
9
|
||||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -2,7 +2,7 @@ Source: bkctld
|
||||||
Section: utils
|
Section: utils
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Victor Laborie <vlaborie@evolix.fr>
|
Maintainer: Victor Laborie <vlaborie@evolix.fr>
|
||||||
Build-Depends: debhelper
|
Build-Depends: debhelper (>= 9), dh-exec
|
||||||
Standards-Version: 3.9.6
|
Standards-Version: 3.9.6
|
||||||
|
|
||||||
Package: bkctld
|
Package: bkctld
|
||||||
|
|
2
debian/install
vendored
Normal file → Executable file
2
debian/install
vendored
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/dh-exec
|
||||||
bkctld usr/sbin
|
bkctld usr/sbin
|
||||||
tpl/* usr/share/bkctld
|
tpl/* usr/share/bkctld
|
||||||
docs/zzz_evobackup usr/share/doc/bkctld
|
docs/zzz_evobackup usr/share/doc/bkctld
|
||||||
|
bash_completion => /etc/bash_completion.d/bkctld
|
||||||
|
|
Loading…
Reference in a new issue