Make provider mandatory

This commit is contained in:
Girish Ramakrishnan
2016-10-26 10:53:25 -07:00
parent 586fc4fe2d
commit 064c584b45

View File

@@ -9,7 +9,7 @@ readonly INSTALLER_SOURCE_DIR="/home/yellowtent/installer"
readonly LOG_FILE="/var/log/cloudron-setup.log"
domain=""
provider="generic"
provider=""
restoreKey=""
restoreUrl=""
tlsProvider="letsencrypt-prod"
@@ -39,6 +39,11 @@ if [[ -z "${domain}" ]]; then
exit 1
fi
if [[ -z "${provider}" ]]; then
echo "--provider is required ('generic', 'scaleway', 'ec2')"
exit 1
fi
echo ""
echo "##############################################"
echo " Cloudron Setup (${version}) "