mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 17:26:26 +01:00
Automatically create SECRET_KEY on init
This commit is contained in:
parent
85c2740f9c
commit
89995f6419
4
make.sh
4
make.sh
@ -7,6 +7,10 @@ init () {
|
||||
mkdir -p "partitioncloud/static/thumbnails"
|
||||
mkdir -p "partitioncloud/static/search-thumbnails"
|
||||
|
||||
if ! test -f "instance/config.py"; then
|
||||
echo "SECRET_KEY=$(python3 -c 'import secrets; print(secrets.token_hex())')" > instance/config.py
|
||||
done
|
||||
|
||||
if test -f "instance/partitioncloud.sqlite"; then
|
||||
printf "Souhaitez vous supprimer la base de données existante ? [y/n] "
|
||||
read -r CONFIRMATION
|
||||
|
Loading…
Reference in New Issue
Block a user