diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index 11c348743..14dceb41d 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -14,6 +14,7 @@ fi # change this to a hash when we make a upgrade release readonly LOG_FILE="/var/log/cloudron-setup.log" +readonly DATA_FILE="/root/cloudron-install-data.json" readonly MINIMUM_DISK_SIZE_GB="19" # this is the size of "/" and required to fit in docker images 19 is a safe bet for different reporting on 20GB min readonly MINIMUM_MEMORY="990" # this is mostly reported for 1GB main memory (DO 992, EC2 990) @@ -221,10 +222,12 @@ if [[ "${initBaseImage}" == "true" ]]; then fi echo "=> Installing version ${version} (this takes some time) ..." -if ! /bin/bash "${box_src_tmp_dir}/scripts/installer.sh" --data "${data}" &>> "${LOG_FILE}"; then +echo "${data}" > "${DATA_FILE}" +if ! /bin/bash "${box_src_tmp_dir}/scripts/installer.sh" --data-file "${DATA_FILE}" &>> "${LOG_FILE}"; then echo "Failed to install cloudron. See ${LOG_FILE} for details" exit 1 fi +rm "${DATA_FILE}" echo -n "=> Waiting for cloudron to be ready (this takes some time) ..." while true; do