rename lib/config to lib/includes

This commit is contained in:
Jérémy Lecour 2020-04-02 00:31:57 +02:00 committed by Jérémy Lecour
parent 77d0681d14
commit 01cc972d83
22 changed files with 21 additions and 21 deletions

2
bkctld
View file

@ -15,7 +15,7 @@ set -u
[ -d './lib' ] && LIBDIR='lib'
[ -d '/usr/lib/bkctld' ] && LIBDIR='/usr/lib/bkctld'
# shellcheck source=lib/config
. "${LIBDIR}/config"
. "${LIBDIR}/includes"
subcommand="${1:-}"
jail="${2:-}"

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
return=0
nb_crit=0

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
cat <<EOF
Usage: bkctld <subcommand> [options]

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
create_inc_btrfs() {
jail_name=$1

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail_name="${1:-}"
if [ -z "${jail_name}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
ip="${2:-}"

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
keyfile="${2:-}"

View file

@ -7,7 +7,7 @@
set -eu
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
[ -d "${JAILDIR}" ] || exit 0
#TODO: try if this command works the same :

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
port="${2:-}"

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -7,7 +7,7 @@
set -eu
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
relative_date() {
format=$(echo $1 | cut -d'.' -f1)

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
mkdir -p "${INDEX_DIR}"
lsof "${IDX_FILE}" >/dev/null 2>&1 || nohup sh -s -- <<EOF >/dev/null 2>&1 &

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail="${1:-}"
if [ ! -n "${jail}" ]; then

View file

@ -5,7 +5,7 @@
#
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
LIBDIR="$(dirname $0)" && . "${LIBDIR}/includes"
jail_name="${1:-}"
if [ ! -n "${jail_name}" ]; then