<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Updating to latest MM version]]></title><description><![CDATA[<p dir="auto">I created the following script that updates MM and the modules that i use.<br />
The script is scheduled to run via a systemd timer at a given date and time :</p>
<p dir="auto">#!/bin/bash<br />
cd ~/MagicMirror<br />
git reset --hard<br />
bash -c  “$(curl -sL <a href="https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh</a>)” apply<br />
cd ~/MagicMirror/modules/MMM-CalendarWeek<br />
git pull<br />
cd ~/MagicMirror/modules/MMM-OpenmapWeather<br />
git pull<br />
cd ~/MagicMirror/modules/MMM-Wallpaper<br />
git pull<br />
cd</p>
<p dir="auto">My questions are :<br />
1 - do I have to run a “git reset --hard” at all prior to running the <a href="http://update-script.sh" target="_blank" rel="noopener noreferrer nofollow ugc">update-script.sh</a> script?<br />
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?<br />
{<br />
module: “updatenotification”,<br />
position: “bottom_bar”,                 //#position: “top_bar”,<br />
config: {<br />
updateInterval: 600000,         // must be greater than 60000 (1 minute)<br />
ignoreModules: [],              // [“MMM=ExampleModule1”, “MMM-ExampleModule2”]<br />
updateTimeout: 120000,          // 2 minutes<br />
updateAutorestart: true,        // true, false<br />
updates: [<br />
{<br />
“MMM-Wallpaper”: “git pull”,<br />
},<br />
{<br />
“MMM-OpenmapWeather”: “git pull”,<br />
},<br />
{<br />
“MMM-CalendarWeek”: “git pull”,<br />
},<br />
],<br />
},<br />
},</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.magicmirror.builders/topic/18840/updating-to-latest-mm-version</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 12:49:40 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18840.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Jul 2024 14:34:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Updating to latest MM version on Tue, 02 Jul 2024 14:25:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/darreno-0" aria-label="Profile: DarrenO-0">@<bdi>DarrenO-0</bdi></a><br />
git reset<br />
yes… AND you are NOT supposed to update our files… for this very problem.  so it taught you something!..  my upgrade script would have warned you…</p>
<p dir="auto">update notification,… well it depends on the module and what the changes are<br />
if the module has a package.json, then its git pull &amp;&amp; npm install or npm rebuild, or …<br />
altho the new 3rd party list is demanding a package.json for metadata about the module… so, that rule is not as useful…</p>
<p dir="auto">so it depends… I would NEVER allow an extension to update my system like that !..<br />
so you get what you get… if it works, don’t touch it…</p>
<p dir="auto">on the restart on change, thats in pm2, and sometimes the file change detection doesn’t work … (for me like 95% not working… 5% where it works is on a mac, I rarely use for MM)…</p>
<p dir="auto">pm2 restart all will do the same thing</p>
]]></description><link>https://forum.magicmirror.builders/post/118622</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118622</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 02 Jul 2024 14:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to Updating to latest MM version on Mon, 01 Jul 2024 23:30:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Thanks Sam</p>
<p dir="auto">I’ve removed the git reset --hard from my .sh script<br />
I had some small changes (gap-body-top/right/bottom/left set to 10px) in main.css which were reset back to the default 60px when I ran the git reset --hard command, so added those line specifically in the custom.css file instead and left the default vaules in the main.css file.</p>
<p dir="auto">For the updatenotification module, does the git pull command, for the respective specified modules not work?<br />
I thought having a git pull command for the modules would negate the need to update them rather than have something display. I’m happy for the core MM update notification but didn’t want notifications for installed modules.<br />
Am I, instead better off updating them as per the .sh script above?</p>
<p dir="auto">One last thing, when I update the config.js file, MM would normally auto-restart with file being rewritten.<br />
Now, for some reason, it doesn’t. How can I get it to do so?</p>
]]></description><link>https://forum.magicmirror.builders/post/118621</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118621</guid><dc:creator><![CDATA[DarrenO 0]]></dc:creator><pubDate>Mon, 01 Jul 2024 23:30:32 GMT</pubDate></item><item><title><![CDATA[Reply to Updating to latest MM version on Tue, 02 Jul 2024 10:49:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/darreno-0" aria-label="Profile: DarrenO-0">@<bdi>DarrenO-0</bdi></a> reset hard is dangerous. it wipes any changes you might have made, without recovery. if you KNOW you are OK, then it’s OK.</p>
<p dir="auto">this is why my upgrade is 2 passes.<br />
test ,  discover anything you might have forgotten, optionally save them (git stash)</p>
<p dir="auto">updatenotification just tells you that something is downlevel.  YOU  have to fix it.<br />
git pull may not be enough.</p>
]]></description><link>https://forum.magicmirror.builders/post/118604</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118604</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 02 Jul 2024 10:49:51 GMT</pubDate></item></channel></rss>