executable_hms 508 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. set -eu
  3. GUILE_INSTALL_LOCALE=0
  4. export GUILE_INSTALL_LOCALE
  5. GUIX_BUILD_OPTIONS=''
  6. export GUIX_BUILD_OPTIONS
  7. IHS_USER=pyhalov
  8. export IHS_USER
  9. IHS_PASS="$(pass show majordomo/private/hms/pyhalov)"
  10. export IHS_PASS
  11. CVM_USER=cron
  12. export CVM_USER
  13. CVM_PASS="$(pass show majordomo/private/cvm/cron)"
  14. export CVM_PASS
  15. case "$1" in
  16. task-delete)
  17. python3 -c "exec(open('/home/oleg/.pythonrc').read()); hms_task_delete($2)"
  18. ;;
  19. *)
  20. command ihs "$@"
  21. ;;
  22. esac