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.

23 lines
480 B

  1. #!/bin/bash
  2. set -e
  3. PEERTUBE_CONFIG_DIR=/etc/peertube
  4. HOST_CONFIG_DIR=$SERVICE_CONFIGSTORE/$PEERTUBE_CONFIG_DIR
  5. password=$(relation-get password) || {
  6. err "Can't get password for '$SERVICE_NAME' from '$TARGET_SERVICE_NAME'."
  7. exit 1
  8. }
  9. cat <<EOF >> "$HOST_CONFIG_DIR/local.yaml"
  10. ## XXXvlab: to be added by redis relation
  11. redis:
  12. hostname: '$TARGET_SERVICE_NAME'
  13. port: 6379
  14. auth: $password
  15. EOF
  16. info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."