mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-11-24 18:41:06 +00:00
Ensure we have an app secret set, also after update
This commit is contained in:
parent
8543ac28e0
commit
e86ace516f
1 changed files with 5 additions and 0 deletions
5
start.sh
5
start.sh
|
@ -41,6 +41,11 @@ first_time_setup() {
|
|||
update_config() {
|
||||
echo "==> Ensure and updating configs"
|
||||
|
||||
# version 5 needs this now
|
||||
if [[ `yq eval '.secrets | has("peertube")' /app/data/production.yaml` != "true" ]]; then
|
||||
yq eval ".secrets.peertube = \"`openssl rand -hex 32`\"" -i /app/data/production.yaml
|
||||
fi
|
||||
|
||||
yq eval ".webserver.hostname = \"${CLOUDRON_APP_DOMAIN}\"" -i /app/data/production.yaml
|
||||
|
||||
# database
|
||||
|
|
Loading…
Reference in a new issue