Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    update commando

    General Discussion
    2
    10
    66
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Raf Translators last edited by

      why do I have to run sudo chmod +x update.sh in the installer folder before every update

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        Hi, what’s plug-ins ou module?

        R 1 Reply Last reply Reply Quote 0
        • R
          Raf Translators @bugsounet last edited by Raf

          @bugsounet
          every update I want to do comes up with permission denied

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            Yes but what’s module or plug-in name impacted?

            R 1 Reply Last reply Reply Quote 0
            • R
              Raf Translators @bugsounet last edited by

              @bugsounet
              almost all

              R 1 Reply Last reply Reply Quote 0
              • R
                Raf Translators @Raf last edited by

                @Raf
                to give an example

                pi@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
                
                1 Reply Last reply Reply Quote 0
                • bugsounet
                  bugsounet Main Coder last edited by

                  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)

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    Raf Translators @bugsounet last edited by

                    @bugsounet said in update commando:

                    cd ~/MagicMirror/modules/EXT-GooglePhotos
                    ls -la

                    i@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 $ 
                    
                    1 Reply Last reply Reply Quote 0
                    • bugsounet
                      bugsounet Main Coder last edited by

                      ok, it’s perfect

                      now … how do you launch MM² ?

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        Raf Translators @bugsounet last edited by

                        @bugsounet
                        pm2 start MagicMirror

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | @bugsounet ©2022