Skip to content
Snippets Groups Projects
Select Git revision
  • 7eff2886ba718d4f0d8e5c2a517e9cfb976619f1
  • main default protected
  • renovate/sentry-sdk-2.x
  • renovate/django-5.x
  • renovate/whitenoise-6.x
  • develop protected
  • new-changes
  • v3.0.3
  • v3.0.2
  • v3.0.2-develop.1
  • v3.0.1
  • v3.0.0-develop.1
  • v3.0.0
  • v2.1.0
  • v2.0.3
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.1
  • v1.0.0
23 results

start.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    run.sh 699 B
    #!/bin/sh
    
    cd /usr/src/app
    
    if [ -z "${TO_MAIL}" ]
    then
    echo "TO_MAIL not set."
    exit 1
    fi
    
    function preview {
            (>&2 echo "run twitter")
        python3 twitter_bot.py --nofailmessage --daydiff 2
        echo ""
            (>&2 echo "run telegram")
        python3 telegram_bot.py --nofailmessage --daydiff 2
        echo ""
    
            (>&2 echo "run twitter as doit")
        python3 twitter_bot.py --nofailmessage --daydiff 1 --doit
        echo ""
            (>&2 echo "run telegram as doit")
        python3 telegram_bot.py --nofailmessage --daydiff 1 --doit
        echo ""
    }
    
    
    (cat << EOF
    Subject: Programm-Info-Bot
    Content-Type: text/plain; charset=UTF-8
    To: ${TO_MAIL}
    
    $(preview)
    EOF
    ) | msmtp ${MSMTP_ARGUMENTS} ${TO_MAIL}