diff --git a/pkg/unbound/docker-entrypoint.sh b/pkg/unbound/docker-entrypoint.sh index a358120..7db45e9 100755 --- a/pkg/unbound/docker-entrypoint.sh +++ b/pkg/unbound/docker-entrypoint.sh @@ -2,9 +2,9 @@ set -e -if [ `which "unbound-$1" 2>/dev/null` ]; then +if [ `which unbound-$1 2>/dev/null` ]; then set -- unbound-"$@" -elif [ ! `which "$1" 2>/dev/null` ]; then +elif [ ! `which $1 2>/dev/null` ]; then set -- unbound -dv "$@" fi diff --git a/token-validator/grades.go b/token-validator/grades.go index 8d9bf4a..c7d9e4d 100644 --- a/token-validator/grades.go +++ b/token-validator/grades.go @@ -7,7 +7,7 @@ import ( ) func init() { - router.GET("/api/grades/", remoteValidatorHandler(apiHandler(computeGrades))) + router.GET("/api/grades/", apiHandler(computeGrades)) } func computeGrades(_ httprouter.Params, _ []byte) (interface{}, error) { diff --git a/tuto3.yml b/tuto3.yml index 198dc89..4dbf39e 100644 --- a/tuto3.yml +++ b/tuto3.yml @@ -780,7 +780,7 @@ files: - path: /usr/sbin/join-maatma contents: | #!/bin/sh - [ -s "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it if you continue." + [ -s "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it it you continue." echo -n "Please copy your token here: " read WGTOKEN mkdir -p /var/lib/adlin/wireguard/