nineskeletor/tmpl/nineskeletor-genkey.sh

10 lines
174 B
Bash

#!/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