## Check system requirements [ ! -f /data/mounted ] && die "/data is not mounted" if [ ! -d "$new_nginx_conf_path" ] ; then die "Can’t deploy service in degraded state. $new_nginx_conf_path dir is missing, please run deployall.sh first" fi ## prepare directories mkdir -p /docker /data run chown root:root /docker run chown root:root /data run chmod 755 /docker run chmod 755 /data ## prepare environment variables JC_ENV=/etc/jeancloud.env dns_certs_path=/data/dnscerts.jean-cloud.org/certs/live http_certs_path=/etc/letsencrypt/live proxy_dir=/etc/nginx cat > "$JC_ENV" <