diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index e2e00a906..4e2931b8e 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -124,6 +124,11 @@ elif [[ \ exit 1 fi +if [[ -n "${edition}" && ! -f "LICENSE" ]]; then + echo "A LICENSE is required to use this edition. Please contact support@cloudron.io" + exit 1 +fi + echo "" echo "##############################################" echo " Cloudron Setup (${requestedVersion:-latest})" @@ -233,6 +238,8 @@ CONF_END fi fi +[[ -f LICENSE ]] && cp LICENSE /etc/cloudron/LICENSE + echo -n "=> Waiting for cloudron to be ready (this takes some time) ..." while true; do echo -n "."