diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index d9bec446b..e1f7ef87b 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -203,21 +203,11 @@ if [[ "${initBaseImage}" == "true" ]]; then echo "" fi -# NOTE: this install script only supports 3.x and above +# NOTE: this install script only supports 4.2 and above echo "=> Installing version ${version} (this takes some time) ..." mkdir -p /etc/cloudron -# this file is used >= 4.2 echo "${provider}" > /etc/cloudron/PROVIDER -# this file is unused <= 4.2 and exists to make legacy installations work. the start script will remove this file anyway -cat > "/etc/cloudron/cloudron.conf" < /etc/cloudron/LICENSE if ! /bin/bash "${box_src_tmp_dir}/scripts/installer.sh" &>> "${LOG_FILE}"; then @@ -225,7 +215,6 @@ if ! /bin/bash "${box_src_tmp_dir}/scripts/installer.sh" &>> "${LOG_FILE}"; then exit 1 fi -# only needed for >= 4.2 mysql -uroot -ppassword -e "REPLACE INTO box.settings (name, value) VALUES ('api_server_origin', '${apiServerOrigin}');" 2>/dev/null mysql -uroot -ppassword -e "REPLACE INTO box.settings (name, value) VALUES ('web_server_origin', '${webServerOrigin}');" 2>/dev/null