Changeset 91517b1 in OpenWorkouts-current


Ignore:
Timestamp:
Feb 19, 2019, 10:21:35 AM (4 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
07f5190
Parents:
3e6467c
Message:

Added a couple more functions to the install script, that show information
about the setup needed for OpenWorkouts to be able to send emails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/install

    r3e6467c r91517b1  
    9494}
    9595
     96setup_mail_server() {
     97    echo ""
     98    echo "IMPORTANT, READ BEFORE STARTING OpenWorkouts"
     99    echo "--------------------------------------------"
     100    echo ""
     101    echo "For emails to be sent by OpenWorkouts you have to set up your mail"
     102    echo "server account. Edit the file development.ini and update the"
     103    echo "parameters:"
     104    echo ""
     105    echo "  mail.host = SERVER"
     106    echo "  mail.tls = True"
     107    echo "  mail.username = USERNAME"
     108    echo "  mail.password = PASSWORD"
     109    echo ""
     110    echo "--------------------------------------------"
     111
     112}
     113
     114create_cron_job() {
     115    echo ""
     116    echo "IMPORTANT, READ BEFORE STARTING OpenWorkouts"
     117    echo "--------------------------------------------"
     118    echo ""
     119    echo "Remember to add a periodic task in your operating system to process"
     120    echo "the mail queue, so emails are sent"
     121    echo ""
     122    echo "In a unix-like system, add this to your crontab:"
     123    echo ""
     124    echo "*/5 * * * * cd ${current} && ./bin/send_emails > /dev/null 2> /dev/null"
     125    echo ""
     126    echo "--------------------------------------------"
     127    echo ""
     128}
     129
    96130setup_start_stop() {
    97131    echo "OpenWorkouts successfully installed in ${env_path}"
     
    116150install_js_deps
    117151create_mail_queue
     152setup_mail_server
     153create_cron_job
    118154setup_start_stop
Note: See TracChangeset for help on using the changeset viewer.