Fix paths in grist.sh (#8777)

This commit is contained in:
Marcio Rinaldi
2025-10-31 03:49:31 -04:00
committed by GitHub
parent c1c073b10f
commit f9a3c8215b

View File

@@ -36,13 +36,13 @@ function update_script() {
msg_info "Creating backup" msg_info "Creating backup"
rm -rf /opt/grist_bak rm -rf /opt/grist_bak
mv grist grist_bak mv /opt/grist /opt/grist_bak
msg_ok "Backup created" msg_ok "Backup created"
fetch_and_deploy_gh_release "grist" "gristlabs/grist-core" "tarball" fetch_and_deploy_gh_release "grist" "gristlabs/grist-core" "tarball"
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
mkdir -p grist/docs mkdir -p /opt/grist/docs
cp -n /opt/grist_bak/.env /opt/grist/.env cp -n /opt/grist_bak/.env /opt/grist/.env
cp -r /opt/grist_bak/docs/* /opt/grist/docs/ cp -r /opt/grist_bak/docs/* /opt/grist/docs/
cp /opt/grist_bak/grist-sessions.db /opt/grist/grist-sessions.db cp /opt/grist_bak/grist-sessions.db /opt/grist/grist-sessions.db