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