nineskeletor/src/nineskeletor-1.0/scripts/genkey.sh

10 lines
183 B
Bash
Executable File

#!/bin/bash
# Se positionner sur la racine du projet
DIR="/var/www/html/nineskeletor/.key"
# Génération d'une clé d'API
if [ ! -f $DIR ]; then
openssl rand -hex 32 > $DIR
fi