Skip to content
Snippets Groups Projects
Unverified Commit d0b831d7 authored by SallySwartz's avatar SallySwartz Committed by GitHub
Browse files

Avoid provision to fail

parent 06bfde6b
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ function application () {
cd /data/domains/${arg_u}
if [ -f ./scripts/install ]; then
export URL=${arg_u}
CURRENT_SUBNET=$(for folder in `ls /data/domains`; do cat /data/domains/$folder/.env | grep SUBNET | cut -d"=" -f2; done | sort -g | tail -n1)
CURRENT_SUBNET=$(for folder in `ls /data/domains`; do if [ -f /data/domains/$folder/.env ];then cat /data/domains/$folder/.env; fi | grep SUBNET | cut -d"=" -f2; done | sort -g | tail -n1)
export SUBNET=$(($CURRENT_SUBNET +1))
if [ -z ${MAIL_DOMAIN:-} ]; then
warning "you have no email server setup, we'll print a random configuration in your application. Make sure to check the parameters for your app to send proper emails."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment