選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

27 行
981 B

  1. # shellcheck shell=bash
  2. ################################################################################
  3. ################## The configuration parameters of the script ##################
  4. ################################################################################
  5. # Bash 'Strict Mode':
  6. # errexit - exit the script if any statement returns a non-true return value
  7. # pipefail - exit the script if any command in a pipeline errors
  8. # nounset - exit the script if you try to use an uninitialised variable
  9. # xtrace - display debugging information
  10. set -o pipefail
  11. # Internal field separator (more flexible):
  12. # IFS_ORIG="$IFS"
  13. # IFS_HACK=$'\n\t'
  14. # IFS="$IFS_HACK"
  15. # PATH env variable setup:
  16. PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  17. # Setting permissions in the script environment:
  18. # 0022 - less restrictive settings (default value)
  19. # 0027 - for better security than above
  20. # 0077 - only for user access (more restrictive)
  21. umask 0027