Skip to content

Commit 3031e5b

Browse files
committed
Budibase: keep Silo's version file out of ~/.silo
Silo 20261018 uses ~/.silo as its config directory; the version file named after the app sat on that path. Update moves an existing file to ~/.silo_s3.
1 parent f68b6a4 commit 3031e5b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎ct/budibase.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ function update_script() {
3232
exit
3333
fi
3434

35-
if check_for_gh_release "silo" "pgsty/silo"; then
35+
[[ -f ~/.silo ]] && mv ~/.silo ~/.silo_s3
36+
if check_for_gh_release "silo_s3" "pgsty/silo"; then
3637
msg_info "Stopping Budibase Silo"
3738
systemctl stop budibase-silo
3839
msg_ok "Stopped Budibase Silo"
3940

40-
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "silo" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
41+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
4142

4243
msg_info "Starting Budibase Silo"
4344
systemctl start budibase-silo

‎install/budibase-install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ msg_ok "Installed Apache CouchDB"
6464

6565
# Budibase's database image pins Clouseau 2.25.0 on Java 8; 3.x needs Java 21 and a different config format
6666
fetch_and_deploy_gh_release "clouseau" "cloudant-labs/clouseau" "prebuild" "2.25.0" "/opt/clouseau" "clouseau-2.25.0-dist.zip"
67-
fetch_and_deploy_gh_release "silo" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
67+
fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "prebuild" "latest" "/opt/silo" "silo_*_linux_$(arch_resolve).tar.gz"
6868
fetch_and_deploy_gh_release "budibase" "Budibase/budibase" "tarball"
6969

7070
msg_info "Building Budibase"

0 commit comments

Comments
 (0)