From 32cf216b6476a44fb6dc36c7ca090fbd6c27d15c Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Wed, 9 Sep 2026 20:26:06 +0200 Subject: [PATCH] passwordpusher: restore data before running migrations --- ct/passwordpusher.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/passwordpusher.sh b/ct/passwordpusher.sh index 2c7a48ba6..714e0b154 100644 --- a/ct/passwordpusher.sh +++ b/ct/passwordpusher.sh @@ -40,6 +40,9 @@ function update_script() { create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball" + + restore_backup + RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby msg_info "Installing Gem Dependencies" @@ -62,8 +65,6 @@ function update_script() { RAILS_ENV=production SECRET_KEY_BASE_DUMMY=1 $STD bundle exec rails assets:precompile msg_ok "Precompiled Assets" - restore_backup - msg_info "Starting Service" systemctl start passwordpusher msg_ok "Started Service"