2020-07-01 13:32:02 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Se positionner sur la racine du projet
|
2020-07-08 15:52:00 +02:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
cd ${DIR}
|
|
|
|
cd ..
|
|
|
|
DIR=$(pwd)/.key
|
2020-07-01 13:32:02 +02:00
|
|
|
|
|
|
|
# Génération d'une clé d'API
|
2020-07-02 15:00:08 +02:00
|
|
|
if [ ! -f $DIR ]; then
|
|
|
|
openssl rand -hex 32 > $DIR
|
2020-07-01 13:32:02 +02:00
|
|
|
fi
|