Add re-installation check

Fixes #536
This commit is contained in:
Girish Ramakrishnan
2018-07-30 10:08:00 -07:00
parent a1070b7da3
commit ed8351b0dc

View File

@@ -36,6 +36,11 @@ if [[ "${disk_size_gb}" -lt "${MINIMUM_DISK_SIZE_GB}" ]]; then
exit 1
fi
if systemctl -q is-active box; then
echo "Error: Cloudron is already installed. To reinstall, start afresh"
exit 1
fi
initBaseImage="true"
# provisioning data
provider=""