Read the statement by Michael Teeuw here.
How to update.
-
-
Not to be mister smartypants … but it’s mentioned in the Readme … ;)
https://github.com/MichMich/MagicMirror#updating-you-magicmirror -
Lol sorry. Wasn’t trying to be. More point out my inepetness. Lol
Linux is still somewhat new to me. Always looking up some command or other.
-
Sorry, I meant that I didnt want to be mister smartypants. 😁
-
@MichMich, but … you are! :)
-
@MichMich said in How to update.:
Not to be mister smartypants … but it’s mentioned in the Readme … ;)
https://github.com/MichMich/MagicMirror#updating-you-magicmirrorfinally a link to the readme :P
-
@wjdw87 The readme.md is also downloaded with the MirrorMirror code when you run the installation command. You’ll find it on your Pi at
~/MagicMirror/README.md
. -
@bhepler said in How to update.:
@wjdw87 The readme.md is also downloaded with the MirrorMirror code when you run the installation command. You’ll find it on your Pi at
~/MagicMirror/README.md
.thanks
-
But is there a way (a sh-script) to update MM and all (!) of the installed (different) modules in a batch. I now do have to go through all the directories recursively. That takes lots of time and is quite annoying. Any idea?
Thx Jimmy -
I use this script, which comes with no guarantee:
#!/usr/bin/env bash cd /home/pi/MagicMirror echo "######### CHECKING MAGIC MIRROR ##########" git fetch if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ] then echo "######### UPGRADING MAGIC MIRROR #########" git pull npm install else echo "######## NO UPGRADE REQUIRED #########" fi echo "" cd modules for directory in *; do if [[ -d ${directory} && ${directory} != "node_modules" && ${directory} != "default" ]]; then echo "######### CHECKING ${directory} ##########" cd ${directory} git fetch if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then echo "######### UPGRADING ${directory} #########" git pull if [[ -e "package.json" && -f "package.json" ]]; then npm install fi else echo "######## NO UPGRADE REQUIRED #########" fi echo "" cd .. fi done