- Timestamp:
- Feb 18, 2019, 4:46:26 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- ec51ffa
- Parents:
- c612889
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/install
rc612889 r1d8d5cd 12 12 # full path to the install logs 13 13 install_log=${current}/var/log/install.log 14 # mail queue directory (where automatically generated emails are stored) 15 mail_queue_path=${current}/var/spool/mqueue 14 16 15 17 set_scripts_permissions() { … … 50 52 create_venv() { 51 53 # create a new virtual environment 52 echo "Creating new python virtual environment [${env_path}]" 53 ${python_bin} -m venv ${env_path} 54 if [ ! -d ${env_path} ]; then 55 echo "Creating new python virtual environment [${env_path}]" 56 ${python_bin} -m venv ${env_path} 57 else 58 if [ ! -f ${env_path}/bin/activate ]; then 59 # env dir found, but not a virtual env 60 echo "Error: ${env_path} exists and is not a valid virtual environment" 61 exit 1 62 else 63 echo "Reusing python virtual environment [${env_path}]" 64 fi 65 fi 54 66 } 55 67 … … 71 83 echo "Installing javascript components" 72 84 ${current}/bin/js_deps >> ${install_log}.stdout 2>> ${install_log}.stderr 85 } 86 87 create_mail_queue() { 88 # Creates a Maildir-format directory that pyramid_mailer can use to 89 # queue mails. 90 echo "Creating mail spool directory ${mail_queue_path}" 91 mkdir -p ${mail_queue_path}/{new,cur,tmp} >> ${install_log}.stdout 2>> ${install_log}.stderr 73 92 } 74 93 … … 94 113 install_openworkouts 95 114 install_js_deps 115 create_mail_queue 96 116 setup_start_stop
Note: See TracChangeset
for help on using the changeset viewer.