Commit 169d0f02 authored by Tim's avatar Tim

fix subnet

parent 58c12851
......@@ -2,6 +2,7 @@
PG_PASSWORD=`< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;`
var=$(for folder in `ls /data/domains`; do cat /data/domains/$folder/.env | grep SUBNET | cut -d"=" -f2; done | sort | tail -n1)
SUBNET=$(($var +1))
echo "DISCOURSE_SMTP_ADDRESS=${MAIL_HOST}" > .env
echo "DISCOURSE_SMTP_USER_NAME=${MAIL_USER}" >> .env
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment