Skip to content

Commit c3aa274

Browse files
authored
Fix backup restoration and cleanup in maintainerr.sh
1 parent d8cd3b6 commit c3aa274

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

ct/maintainerr.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ function update_script() {
3838
msg_ok "Stopped Service"
3939

4040
create_backup /opt/data /opt/maintainerr/.env
41-
4241
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "maintainerr" "Maintainerr/Maintainerr" "tarball" "latest" "/opt/maintainerr"
42+
restore_backup
4343

4444
msg_info "Rebuilding Maintainerr (Patience)"
4545
cd /opt/maintainerr
@@ -55,15 +55,12 @@ function update_script() {
5555
find apps/server/dist/ui -type f -not -path '*/node_modules/*' -print0 | xargs -0 sed -i "s,/__PATH_PREFIX__,,g"
5656
$STD yarn workspaces focus --all --production
5757
rm -rf /opt/maintainerr/.yarn/cache /opt/maintainerr/.turbo /opt/maintainerr/apps/ui
58-
$STD apt autoremove -y
59-
msg_ok "Rebuilt Maintainerr"
60-
61-
restore_backup
6258
sed -i '/^npm_package_version=/d;/^VERSION_TAG=/d' /opt/maintainerr/.env
6359
{
6460
echo "VERSION_TAG=stable"
6561
echo "npm_package_version=$(cat ~/.maintainerr)"
6662
} >>/opt/maintainerr/.env
63+
msg_ok "Rebuilt Maintainerr"
6764

6865
msg_info "Starting Service"
6966
systemctl start maintainerr

0 commit comments

Comments
 (0)