2 parents 690f499 + 9bd1e32 commit 85bb16dCopy full SHA for 85bb16d
1 file changed
src/modules/magicmirroros/filesystem/home/pi/scripts/run_magicmirroros
@@ -8,8 +8,15 @@ if [ ! -f /home/pi/magicmirror/run/docker-compose.yml ]; then
8
mkdir -p /home/pi/magicmirror/mounts
9
fi
10
cd /home/pi/magicmirror/run
11
+# start mm
12
docker-compose up -d
-xterm
13
+# pull newest docker image
14
+docker-compose pull
15
+# restart if image changed
16
+docker-compose up -d
17
+
18
+sleep infinity
19
+#xterm
20
# while true
21
# do
22
# sleep 10
0 commit comments