Code cleanup #33

Manually merged
jlecour merged 71 commits from jlecour-refactoring into master 2020-04-17 15:32:41 +02:00
20 changed files with 20 additions and 20 deletions
Showing only changes of commit e7e3683944 - Show all commits

View file

@ -4,7 +4,7 @@
# Usage: check
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
return=0

View file

@ -4,7 +4,7 @@
# Usage: firewall <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: help
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
cat <<EOF

View file

@ -4,7 +4,7 @@
# Usage: inc
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
date=$(date +"%Y-%m-%d-%H")

View file

@ -4,7 +4,7 @@
# Usage: init <jailname>
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: ip <jailname> [<ip>|all]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: is-on <jailname>
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: key <jailname> [<keyfile>]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -6,7 +6,7 @@
set -eu
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
[ -d "${JAILDIR}" ] || exit 0

View file

@ -4,7 +4,7 @@
# Usage: port <jailname> [<port>|auto]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: reload <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: remove <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -6,7 +6,7 @@
set -eu
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: rm
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
relative_date() {

View file

@ -4,7 +4,7 @@
# Usage: start <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: stats
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
mkdir -p "${INDEX_DIR}"

View file

@ -4,7 +4,7 @@
# Usage: status [<jailname>]
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: stop <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: sync <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"

View file

@ -4,7 +4,7 @@
# Usage: update <jailname>|all
#
# shellcheck source=config
# shellcheck source=./config
LIBDIR="$(dirname $0)" && . "${LIBDIR}/config"
jail="${1:-}"