Helm chart for deploying Peertube on kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
511 B

  1. #!/bin/sh
  2. # Populate config directory
  3. if [ -z "$(ls -A /config)" ]; then
  4. cp /app/support/docker/production/config/* /config
  5. fi
  6. # Always copy default and custom env configuration file, in cases new keys were added
  7. cp /app/config/default.yaml /config
  8. cp /app/support/docker/production/config/custom-environment-variables.yaml /config
  9. # Patch user after the cp
  10. find /config ! -user peertube -exec chown peertube:peertube {} \;
  11. # Prepare assets for the Nginx sidecar
  12. cp -r /app/client/dist/* /assets/
  13. exit 0