diff --git a/ct/zipline.sh b/ct/zipline.sh index cdf634f..6adaed9 100644 --- a/ct/zipline.sh +++ b/ct/zipline.sh @@ -40,9 +40,11 @@ function update_script() { msg_info "Updating ${APP} to ${RELEASE}" cp /opt/zipline/.env /opt/ - rm -R /opt/zipline + mkdir -p /opt/zipline-updload + cp -R /opt/zipline/updload/* /opt/zipline-upload/ || true curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip + rm -R /opt/zipline mv zipline-${RELEASE} /opt/zipline cd /opt/zipline mv /opt/.env /opt/zipline/.env diff --git a/install/zipline-install.sh b/install/zipline-install.sh index c88958b..58a6ab8 100644 --- a/install/zipline-install.sh +++ b/install/zipline-install.sh @@ -51,7 +51,8 @@ msg_ok "Set up PostgreSQL" msg_info "Installing Zipline (Patience)" cd /opt -RELEASE=$(curl -fsSL https://api.github.com/repos/diced/zipline/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +#RELEASE=$(curl -fsSL https://api.github.com/repos/diced/zipline/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +RELEASE="3.7.13" curl -fsSL "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/diced/zipline/archive/refs/tags/v${RELEASE}.zip") unzip -q v${RELEASE}.zip mv zipline-${RELEASE} /opt/zipline @@ -62,6 +63,8 @@ CORE_SECRET=$SECRET_KEY CORE_HOSTNAME=0.0.0.0 CORE_PORT=3000 CORE_RETURN_HTTPS=false +DATASOURCE_TYPE=local +DATASOURCE_LOCAL_DIRECTORY=/opt/zipline-uploads EOF $STD pnpm install $STD pnpm build