plus de template sur la génération de la key

This commit is contained in:
root 2020-07-08 15:52:00 +02:00
parent fef4a492ae
commit 5bad73b8fd
3 changed files with 4 additions and 11 deletions

View File

@ -29,7 +29,6 @@
<variable name='activer_nineskeletor' type='oui/non' description='Activer nineskeletor'>
<value>oui</value>
</variable>
<variable type='string' name='nineskeletor_api_key' description="Fichier déclarant la clé d'accès API" mandatory='True'><value>/var/www/html/nineskeletor/.key</value></variable>
<variable type='string' name='nineskeletor_mode_auth' description="Mode Authentification" mandatory='True'><value>CAS</value></variable>
<variable type='string' name='nineskeletor_masteridentity' description="Maître de l'Identité" mandatory='True'><value>Ninegate</value></variable>

View File

@ -1,7 +1,10 @@
#!/bin/bash
# Se positionner sur la racine du projet
DIR="/var/www/html/nineskeletor/.key"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ${DIR}
cd ..
DIR=$(pwd)/.key
# Génération d'une clé d'API
if [ ! -f $DIR ]; then

View File

@ -1,9 +0,0 @@
#!/bin/bash
# Se positionner sur la racine du projet
DIR="%%nineskeletor_api_key"
# Génération d'une clé d'API
if [ ! -f $DIR ]; then
openssl rand -hex 32 > $DIR
fi