mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
14 lines
356 B
Bash
Executable File
14 lines
356 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# generate a secret and store it in the SECRET file.
|
|
# Note that this overwrites the existing file
|
|
|
|
# base setup
|
|
SCRIPT_PATH=$(realpath $0)
|
|
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
|
|
|
# configuration
|
|
CONFIGURATION=${CONFIGURATION:-"example"}
|
|
SECRET_FILE=${SCRIPT_DIR}/../configurations/${CONFIGURATION}/SECRET
|
|
|
|
openssl rand -base64 32 > ${SECRET_FILE} |