cgi-test.sh 687 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #set -e
  3. cd "$(dirname "${0}")"
  4. # readonly cgi="_build/seppo-Linux-x86_64-0.1.cgi"
  5. readonly cgi="$(pwd)/_build/default/bin/seppo.exe"
  6. mkdir -p /tmp/seppo/
  7. cd /tmp/seppo/
  8. "${cgi}" dot \
  9. | dot -Tsvg -o seppo.svg
  10. rm \
  11. app/etc/id_rsa.priv.pem \
  12. activitypub/id_rsa.pub.pem \
  13. activitypub/index.json
  14. "${cgi}" activitypub
  15. ls -Altr \
  16. app/etc/id_rsa.priv.pem \
  17. activitypub/* \
  18. .well-known/webfinger/*
  19. #tree
  20. exit 0
  21. export PATH_INFO="/activitypub/monitor.txt"
  22. export REQUEST_METHOD="GET"
  23. export SERVER_NAME="example.com"
  24. export SERVER_PORT="443"
  25. export REMOTE_ADDR="127.0.0.1"
  26. export SCRIPT_NAME="seppo.cgi"
  27. echo "${cgi}${PATH_INFO}"
  28. # sh app/etc/keygen.sh
  29. "${cgi}"