This Forum is now reserved to registred users!
update commando
-
why do I have to run sudo chmod +x update.sh in the installer folder before every update
-
Hi, what’s plug-ins ou module?
-
@bugsounet
every update I want to do comes up with permission denied -
Yes but what’s module or plug-in name impacted?
-
@bugsounet
almost all -
@Raf
to give an examplepi@raspberrypi:~/MagicMirror/modules/EXT-Alert $ cd pi@raspberrypi:~ $ cd ~/MagicMirror/modules/EXT-GooglePhotos npm run update > EXT-GooglePhotos@1.1.0 update > installer/update.sh sh: 1: installer/update.sh: Permission denied pi@raspberrypi:~/MagicMirror/modules/EXT-GooglePhotos $ cd installer pi@raspberrypi:~/MagicMirror/modules/EXT-GooglePhotos/installer $ sudo chmod +x update.sh pi@raspberrypi:~/MagicMirror/modules/EXT-GooglePhotos/installer $ cd pi@raspberrypi:~ $ cd ~/MagicMirror/modules/EXT-GooglePhotos npm run update > EXT-GooglePhotos@1.1.0 update > installer/update.sh
-
Can you give me the result of this ?
cd ~/MagicMirror/modules/EXT-GooglePhotos ls -la
and
cd ~/MagicMirror ls -la
I suspect that you have installed MagicMirror and/or installed plugins (or modules) in administrator mode (with sudo [and root user]) instead of a normal user (like pi user)
-
@bugsounet said in update commando:
cd ~/MagicMirror/modules/EXT-GooglePhotos
ls -lai@raspberrypi:~/MagicMirror $ ls -la totaal 91396 drwxr-xr-x 18 pi pi 4096 10 feb 06:36 . drwxr-xr-x 23 pi pi 4096 14 mrt 14:49 .. -rw-r--r-- 1 pi pi 66897 10 feb 06:36 CHANGELOG.md drwxr-xr-x 2 pi pi 4096 30 dec 17:53 clientonly -rw-r--r-- 1 pi pi 596 2 jan 09:34 Collaboration.md drwxr-xr-x 2 pi pi 4096 14 mrt 08:07 config -rw------- 1 pi pi 364126208 16 jan 08:10 core drwxr-xr-x 2 pi pi 4096 30 dec 18:10 css -rw-r--r-- 1 pi pi 238 30 dec 17:53 .editorconfig -rw-r--r-- 1 pi pi 34 30 dec 17:53 .eslintignore -rw-r--r-- 1 pi pi 610 30 dec 17:53 .eslintrc.json drwxr-xr-x 3 pi pi 4096 30 dec 17:55 fonts drwxr-xr-x 8 pi pi 4096 14 mrt 19:14 .git drwxr-xr-x 3 pi pi 4096 30 dec 17:53 .github -rw-r--r-- 1 pi pi 1081 2 jan 09:34 .gitignore drwxr-xr-x 2 pi pi 4096 30 dec 17:53 .husky -rw-r--r-- 1 pi pi 2858 30 dec 17:53 index.html drwxr-xr-x 2 pi pi 4096 2 jan 09:33 installers -rw-r--r-- 1 pi pi 995 2 jan 09:34 jest.config.js drwxr-xr-x 2 pi pi 4096 2 jan 09:34 js -rw-r--r-- 1 pi pi 264 30 dec 17:53 jsconfig.json -rw-r--r-- 1 pi pi 1098 30 dec 17:53 LICENSE.md drwxr-xr-x 17 pi pi 4096 14 mrt 09:00 modules -rw-r--r-- 1 pi pi 1041 30 dec 17:53 module-types.ts drwxr-xr-x 257 pi pi 20480 10 feb 06:36 node_modules -rw-r--r-- 1 pi pi 3875 2 jan 09:34 package.json -rw-r--r-- 1 pi pi 516874 10 feb 06:36 package-lock.json -rw-r--r-- 1 pi pi 36 2 jan 09:34 .prettierignore -rw-r--r-- 1 pi pi 29 30 dec 17:53 .prettierrc.json -rw-r--r-- 1 pi pi 3436 9 jan 09:48 README.md -rwxr-xr-x 1 pi pi 5105 30 dec 17:53 run-start.sh drwxr-xr-x 2 pi pi 4096 30 dec 17:53 serveronly drwxr-xr-x 2 pi pi 4096 30 dec 17:53 splashscreen -rw-r--r-- 1 pi pi 131 30 dec 17:53 .stylelintrc.json drwxr-xr-x 7 pi pi 4096 2 jan 09:34 tests -rw-r--r-- 1 pi pi 2269 10 feb 06:36 th.json drwxr-xr-x 2 pi pi 4096 2 jan 09:34 translations drwxr-xr-x 4 pi pi 4096 2 jan 09:34 vendor pi@raspberrypi:~/MagicMirror $ i@raspberrypi:~ $ cd ~/MagicMirror/modules/EXT-GooglePhotos ls -la totaal 84 drwxr-xr-x 9 pi pi 4096 14 mrt 08:16 . drwxr-xr-x 17 pi pi 4096 14 mrt 09:00 .. -rw-r--r-- 1 pi pi 1877 22 dec 11:25 EXT-GooglePhotos.css -rw-r--r-- 1 pi pi 11188 14 mrt 08:16 EXT-GooglePhotos.js drwxr-xr-x 8 pi pi 4096 14 mrt 19:13 .git drwxr-xr-x 2 pi pi 4096 14 mrt 08:16 installer drwxr-xr-x 2 pi pi 4096 30 dec 18:02 lib -rw-r--r-- 1 pi pi 1076 22 dec 11:25 LICENSE -rw-r--r-- 1 pi pi 2496 22 dec 11:25 node_helper.js drwxr-xr-x 40 pi pi 4096 30 dec 18:02 node_modules -rw-r--r-- 1 pi pi 914 14 mrt 08:16 package.json -rw-r--r-- 1 pi pi 11839 14 mrt 08:16 package-lock.json -rw-r--r-- 1 pi pi 798 14 mrt 08:16 README.md drwxr-xr-x 2 pi pi 4096 30 dec 18:02 resources drwxr-xr-x 3 pi pi 4096 30 dec 18:02 tmp -rw-r--r-- 1 pi pi 517 14 mrt 18:39 tokenGP.json drwxr-xr-x 2 pi pi 4096 30 dec 18:02 translations pi@raspberrypi:~/MagicMirror/modules/EXT-GooglePhotos $
-
ok, it’s perfect
now … how do you launch MM² ?
-
@bugsounet
pm2 start MagicMirror