Fix secret generation

This commit is contained in:
Girish Ramakrishnan 2024-12-22 15:06:08 +01:00
parent 567ae45b95
commit 4f310771f2

View file

@ -49,7 +49,7 @@ update_config() {
echo "==> Ensure and updating configs"
# version 5 needs this now
if [[ `yq eval '.secrets | has("peertube")' /app/data/production.yaml` != "true" ]]; then
if [[ `yq eval '.secrets.peertube' /app/data/production.yaml` == "" ]]; then
yq eval ".secrets.peertube = \"`openssl rand -hex 32`\"" -i /app/data/production.yaml
fi