content: ################################################################################
  #     These setups are part of the project: https://code.shin.company/php
  #     Please respect the intellectual effort that went into creating them.
  #     If you use or copy these ideas, proper credit would be appreciated.
  #      - Author:  Mai Nhut Tan <shin@shin.company>
  #      - License: https://code.shin.company/php/blob/main/LICENSE
  ################################################################################
  # install crontab
  RUN <<'EOF'
  echo 'Configure base crontab'
  [ -z "$DEBUG" ] || set -ex && set -e
  
  env-default '# Environment variables for crontab'
  env-default ENABLE_CRONTAB   '0'
  env-default CRONTAB_SETTINGS ''
  env-default CRONTAB_SHELL    '/bin/bash'
  env-default CRONTAB_MAILTO   '$APP_ADMIN'
  env-default CRONTAB_OPTIONS  ''
  
  if ! has-cmd crond; then
      pkg-add cron
      ln -nsf $(type -P cron) /usr/sbin/crond
  fi
  
  if has-cmd s6-service; then
      s6-service crontab longrun '#!/usr/bin/env bash
  if is-true "$ENABLE_CRONTAB"; then
      exec 2>&1
      exec in-app crond -f $CRONTAB_OPTIONS
  else
      exec s6-svc -Od .
  fi
  '
  fi
  
  EOF
  
  ################################################################################
  #     These setups are part of the project: https://code.shin.company/php
  #     Please respect the intellectual effort that went into creating them.
  #     If you use or copy these ideas, proper credit would be appreciated.
  ################################################################################
  