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

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