mirror of
https://git.cloudron.io/cloudron/peertube-app.git
synced 2024-11-21 17:11:09 +00:00
Add migration for v4 config options
This commit is contained in:
parent
b8a3df7ffd
commit
17e3873f8e
1 changed files with 9 additions and 0 deletions
9
start.sh
9
start.sh
|
@ -69,6 +69,15 @@ yq eval ".smtp.tls = false" -i /app/data/production.yaml
|
|||
yq eval ".smtp.disable_starttls = true" -i /app/data/production.yaml
|
||||
yq eval ".smtp.from_address = \"${CLOUDRON_MAIL_FROM}\"" -i /app/data/production.yaml
|
||||
|
||||
# v4 config file migrations https://github.com/Chocobozzz/PeerTube/releases/tag/v4.0.0
|
||||
yq eval "del(.log.rotation.maxFileSize)" -i /app/data/production.yaml
|
||||
yq eval "del(.log.rotation.maxFiles)" -i /app/data/production.yaml
|
||||
yq eval "del(.log.anonymizeIP)" -i /app/data/production.yaml
|
||||
yq eval ".log.rotation.max_file_size = \"1MB\"" -i /app/data/production.yaml
|
||||
yq eval ".log.rotation.max_files = 1" -i /app/data/production.yaml
|
||||
yq eval ".log.anonymizeIP = false" -i /app/data/production.yaml
|
||||
yq eval ".storage.bin = \"/app/data/storage/bin/\"" -i /app/data/production.yaml
|
||||
|
||||
chown -R cloudron:cloudron /app/data
|
||||
|
||||
echo "==> Starting PeerTube"
|
||||
|
|
Loading…
Reference in a new issue