1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-03-22 02:24:56 +00:00
webvirtcloud/genpass.sh
aiminick 156cfb40dd dev
2021-04-12 02:17:48 +08:00

6 lines
318 B
Bash
Executable file

#!/bin/bash
rm -rf webvirtcloud/settings.py
cp -arpf webvirtcloud/settings.py.template webvirtcloud/settings.py
python conf/runit/secret_generator.py
sed -r "s/SECRET_KEY = \"\"/SECRET_KEY = \"`python3 conf/runit/secret_generator.py`\"/" -i webvirtcloud/settings.py; cat webvirtcloud/settings.py|grep SECRET_KEY