Skip to content

Commit ce16be6

Browse files
authored
Ensure Node version at least v18.20.3 and make fresh backup folder each time (#2468)
1 parent b694c33 commit ce16be6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ct/magicmirror.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ function update_script() {
3535
msg_ok "Stopped Service"
3636

3737
msg_info "Updating ${APP} to v${RELEASE}"
38+
$STD apt-get update
39+
$STD apt-get upgrade -y
40+
rm -rf /opt/magicmirror-backup
3841
mkdir /opt/magicmirror-backup
3942
cp /opt/magicmirror/config/config.js /opt/magicmirror-backup
4043
if [[ -f /opt/magicmirror/css/custom.css ]]; then

0 commit comments

Comments
 (0)