#!/bin/bash script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" json="${script_dir}/../node_modules/.bin/json" # IMPORTANT: Fix cloudron.js:doUpdate if you add/remove any arg. keep these sorted for readability arg_api_server_origin="" arg_box_versions_url="" arg_fqdn="" arg_is_custom_domain="false" arg_restore_key="" arg_restore_url="" arg_retire="false" arg_tls_config="" arg_tls_cert="" arg_tls_key="" arg_token="" arg_version="" arg_web_server_origin="" arg_backup_config="" arg_dns_config="" arg_update_config="" arg_provider="" arg_app_bundle="" args=$(getopt -o "" -l "data:,retire" -n "$0" -- "$@") eval set -- "${args}" while true; do case "$1" in --retire) arg_retire="true" shift ;; --data) # only read mandatory non-empty parameters here read -r arg_api_server_origin arg_web_server_origin arg_fqdn arg_is_custom_domain arg_box_versions_url arg_version <