I created the following script that updates MM and the modules that i use.
The script is scheduled to run via a systemd timer at a given date and time :
#!/bin/bash
cd ~/MagicMirror
git reset --hard
bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply
cd ~/MagicMirror/modules/MMM-CalendarWeek
git pull
cd ~/MagicMirror/modules/MMM-OpenmapWeather
git pull
cd ~/MagicMirror/modules/MMM-Wallpaper
git pull
cd
My questions are :
1 - do I have to run a “git reset --hard” at all prior to running the update-script.sh script?
2 - if I have also configured the updatenotification module for those listed 3x modules, do I have to perform the “git pull” command in my own script if the command for those modules is specified?
{
module: “updatenotification”,
position: “bottom_bar”, //#position: “top_bar”,
config: {
updateInterval: 600000, // must be greater than 60000 (1 minute)
ignoreModules: [], // [“MMM=ExampleModule1”, “MMM-ExampleModule2”]
updateTimeout: 120000, // 2 minutes
updateAutorestart: true, // true, false
updates: [
{
“MMM-Wallpaper”: “git pull”,
},
{
“MMM-OpenmapWeather”: “git pull”,
},
{
“MMM-CalendarWeek”: “git pull”,
},
],
},
},
Thanks.