File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ function update_script() {
4040
4141 msg_info " Updating ${APP} to ${RELEASE} "
4242 cp /opt/zipline/.env /opt/
43- rm -R /opt/zipline
43+ mkdir -p /opt/zipline-upload
44+ cp -R /opt/zipline/upload/* /opt/zipline-upload/
4445 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" )
45- unzip -q v${RELEASE} .zip
46- mv zipline-${RELEASE} /opt/zipline
46+ unzip -q v" ${RELEASE} " .zip
47+ rm -R /opt/zipline
48+ mv zipline-" ${RELEASE} " /opt/zipline
4749 cd /opt/zipline
4850 mv /opt/.env /opt/zipline/.env
4951 $STD pnpm install
@@ -56,7 +58,7 @@ function update_script() {
5658 msg_ok " Started ${APP} "
5759
5860 msg_info " Cleaning Up"
59- rm -rf v${RELEASE} .zip
61+ rm -rf v" ${RELEASE} " .zip
6062 msg_ok " Cleaned"
6163 msg_ok " Updated Successfully"
6264 else
Original file line number Diff line number Diff line change @@ -53,16 +53,19 @@ msg_info "Installing Zipline (Patience)"
5353cd /opt
5454RELEASE=$( curl -fsSL https://api.github.com/repos/diced/zipline/releases/latest | grep " tag_name" | awk ' {print substr($2, 3, length($2)-4) }' )
5555curl -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" )
56- unzip -q v${RELEASE} .zip
57- mv zipline-${RELEASE} /opt/zipline
56+ unzip -q v" ${RELEASE} " .zip
57+ mv zipline-" ${RELEASE} " /opt/zipline
5858cd /opt/zipline
5959cat << EOF >/opt/zipline/.env
6060DATABASE_URL=postgres://$DB_USER :$DB_PASS @localhost:5432/$DB_NAME
6161CORE_SECRET=$SECRET_KEY
6262CORE_HOSTNAME=0.0.0.0
6363CORE_PORT=3000
6464CORE_RETURN_HTTPS=false
65+ DATASOURCE_TYPE=local
66+ DATASOURCE_LOCAL_DIRECTORY=/opt/zipline-upload
6567EOF
68+ mkdir -p /opt/zipline-upload
6669$STD pnpm install
6770$STD pnpm build
6871echo " ${RELEASE} " > " /opt/${APPLICATION} _version.txt"
You can’t perform that action at this time.
0 commit comments