default 429 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
  3. source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
  4. robots_txt_default() {
  5. declare desc="display robots.txt configration"
  6. local cmd="$1"
  7. [[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1
  8. local APP="$2"; verify_app_name "$APP"
  9. dokku_log_info2 "$APP robots.txt"
  10. cat "$DOKKU_ROOT/$APP/robots.txt"
  11. }
  12. robots_txt_default "$@"