Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

Commit

Permalink
adding exit code to prepare scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gulien committed Feb 17, 2017
1 parent f65486b commit 34f98d4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion _bin/prepare/_prepare_apache
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ source ${ROOT}/.env;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${APACHE_ENABLE_XDEBUG}/${APACHE_ENABLE_XDEBUG}/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/- VIRTUAL_HOST=\${APACHE_VIRTUAL_HOST}/- VIRTUAL_HOST=${APACHE_VIRTUAL_HOST}/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${USER_ID}/$(id -u)/g" ${ROOT}/docker-compose.yml; # permissions issues workaround
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${REVERSE_PROXY_NAME}/${REVERSE_PROXY_NAME}/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${REVERSE_PROXY_NAME}/${REVERSE_PROXY_NAME}/g" ${ROOT}/docker-compose.yml;

exit 0;
4 changes: 3 additions & 1 deletion _bin/prepare/_prepare_mysql
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ if [ ${MYSQL_ENABLE_PORTS_MAPPING} = 0 ]; then
else
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${MYSQL_PORTS_MAPPING}/ports/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${MYSQL_HOST_PORT_TO_MAP}/${MYSQL_HOST_PORT_TO_MAP}/g" ${ROOT}/docker-compose.yml;
fi;
fi;

exit 0;
4 changes: 3 additions & 1 deletion _bin/prepare/_prepare_networks
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ source ${ROOT}/.env;

/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${BASE_NETWORK}/${BASE_NETWORK}/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${REVERSE_PROXY_NETWORK}/${REVERSE_PROXY_NETWORK}/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${REVERSE_PROXY_NETWORK}/${REVERSE_PROXY_NETWORK}/g" ${ROOT}/docker-compose-reverse-proxy.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${REVERSE_PROXY_NETWORK}/${REVERSE_PROXY_NETWORK}/g" ${ROOT}/docker-compose-reverse-proxy.yml;

exit 0;
4 changes: 3 additions & 1 deletion _bin/prepare/_prepare_reverse_proxy
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ if [ ${REVERSE_PROXY_ENABLE_SSL} = 0 ]; then
/bin/bash ${ROOT}/_bin/utils/_sedi "s/- \${REVERSE_PROXY_CERTS_PATH}/#- \${REVERSE_PROXY_CERTS_PATH}/g" ${ROOT}/docker-compose-reverse-proxy.yml;
else
/bin/bash ${ROOT}/_bin/utils/_sedi "s/- \${REVERSE_PROXY_CERTS_PATH}/- $(echo ${REVERSE_PROXY_CERTS_PATH} | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')/g" ${ROOT}/docker-compose-reverse-proxy.yml;
fi;
fi;

exit 0;
2 changes: 2 additions & 0 deletions docs/postfix.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ source ${ROOT}/.env;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${MAIL_DOMAIN}/${MAIL_DOMAIN}/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${NO_REPLY_EMAIL}/${NO_REPLY_EMAIL}/g" ${ROOT}/docker-compose.yml;
/bin/bash ${ROOT}/_bin/utils/_sedi "s/\${SMTP_PASSWORD}/${SMTP_PASSWORD}/g" ${ROOT}/docker-compose.yml;
exit 0;
```

Last but not least, run `cp .env.template .env` and `make kickoff`! You have now at your disposal a nice Postfix container :smiley:
Expand Down

0 comments on commit 34f98d4

Please sign in to comment.