A script to update Gitea
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.
 
 
 

28 lines
1.2 KiB

  1. #!/bin/sh
  2. printf '%s: ' "Command to start Gitea"
  3. read start_gitea
  4. printf '%s: ' "Command to stop Gitea"
  5. read stop_gitea
  6. printf '%s: ' "User with write access to directory containing Gitea binary"
  7. read user
  8. printf '%s: ' "Command to run as user"
  9. read do_as_user
  10. printf '%s: ' "Directory containing Gitea binary"
  11. read gitea_binary_dir
  12. printf '%s: ' 'Operating System (must be one of "darwin", "linux", or "windows-4.0")'
  13. read arch
  14. printf '%s: ' 'CPU Architechture (must be one of "386", "amd64", "arm-5", "arm-6", "mips", "mips64le", or "mipsle")'
  15. cat <<EOF > macros.m4
  16. dnl -*- mode: m4 -*-
  17. dnl Macro definitions
  18. changequote([, ])dnl
  19. define(start_gitea, [$start_gitea])dnl Command to start Gitea
  20. define(stop_gitea, [$stop_gitea])dnl Command to stop Gitea
  21. define(user, [$user])dnl User with write access to directory containing Gitea binary
  22. define(do_as_user, [$do_as_user])dnl Command to run as user
  23. define(gitea_binary_dir, [$gitea_binary_dir])dnl Directory containing Gitea binary
  24. define(os, [$os])dnl Operating System (must be one of "darwin", "linux", or "windows-4.0")
  25. define(arch, [$arch])dnl CPU Architechture (must be one of "386", "amd64", "arm-5", "arm-6", "mips", "mips64le", or "mipsle")
  26. EOF