mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-10 07:56:26 +00:00
passwordpusher: restore data before running migrations
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user