From d0b831d7dc4c6262112d9cbada92ecc1660b27e9 Mon Sep 17 00:00:00 2001 From: SallySwartz <36958741+SallySwartz@users.noreply.github.com> Date: Thu, 12 Apr 2018 14:33:23 +0200 Subject: [PATCH] Avoid provision to fail --- utils/provision | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/provision b/utils/provision index 5bf04bc..e354b23 100755 --- a/utils/provision +++ b/utils/provision @@ -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." -- GitLab