Ensure Node version at least v18.20.3 and make fresh backup folder each time (#2468)

This commit is contained in:
Slaviša Arežina 2025-02-18 12:00:24 +01:00 committed by GitHub
parent b694c339cb
commit ce16be6393
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,9 @@ function update_script() {
msg_ok "Stopped Service"
msg_info "Updating ${APP} to v${RELEASE}"
$STD apt-get update
$STD apt-get upgrade -y
rm -rf /opt/magicmirror-backup
mkdir /opt/magicmirror-backup
cp /opt/magicmirror/config/config.js /opt/magicmirror-backup
if [[ -f /opt/magicmirror/css/custom.css ]]; then