Compare commits

..

3 Commits

Author SHA1 Message Date
3971ab3f20 token-validator: Restrict grades API access to owner
All checks were successful
continuous-integration/drone/push Build is passing
Thanks-To: Elie Brami <elie.brami@epita.fr>
2022-04-21 13:50:16 +02:00
3613da33cf pkg/unbound: Avoid unquoted var
Thanks-To: Elie Brami <elie.brami@epita.fr>
2022-04-21 13:49:37 +02:00
41cbf74c48 Fix typo
Thanks-To: Elie Brami <elie.brami@epita.fr>
2022-04-21 13:46:20 +02:00
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -7,7 +7,7 @@ import (
)
func init() {
router.GET("/api/grades/", apiHandler(computeGrades))
router.GET("/api/grades/", remoteValidatorHandler(apiHandler(computeGrades)))
}
func computeGrades(_ httprouter.Params, _ []byte) (interface{}, error) {

View File

@ -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 it you continue."
[ -s "/var/lib/adlin/wireguard/adlin.token" ] && echo "A token is already defined. You'll erase it if you continue."
echo -n "Please copy your token here: "
read WGTOKEN
mkdir -p /var/lib/adlin/wireguard/