Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Reinstall.sh Fehlerhaft

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Reinstall.sh Fehlerhaft

    This topic has been deleted. Only users with topic management privileges can see it.
    • sissiwup
      sissiwup last edited by

      Hallo,

      habe mir grade meinen PI komplett zerschossen, da ich das reinstall.sh Skript aufgerufen habe.

      Leider ist der chmod 777 auf Ebene / gelaufen. Damit ist alles kaputt.

      #!/bin/bash
      iobroker stop
      ls -1 ./node_modules | grep iobroker. > list.txt
      cd node_modules; 
      rm * -R
      cd ..
      while read in; do npm install $in --production; cd node_modules/$in/; npm install --production; cd ../..; done < list.txt
      chmod 777 * -R
      rm list.txt
      iobroker upload all
      

      Hat bei mir den ganzen PI mit "777" beglückt und munter ins Hauptverzeichnis installiert

      #!/bin/bash
      cd /opt/iobroker
      iobroker stop
      ls -1 ./node_modules | grep iobroker. > list.txt 
      rm /opt/iobroker/node_modules/* -R
      cd /opt/iobroker
      while read in; do cd /opt/iobroker; npm install $in --production; cd node_modules/$in/; npm install --production; cd ../..; done < list.txt
      cd /opt/iobroker
      chmod 777 * -R
      cp list.txt list.txt.org
      iobroker upload all
      
      1 Reply Last reply Reply Quote 0
      • sissiwup
        sissiwup last edited by

        Hallo,

        habe den PI wieder gerettet.

        Du brauchst halt eine möglichst identische Zweitinstallation, dann
        kannst du mit getfacl und setfacl die Rechte "kopieren":
        
        auf dem Quellsystem in /:
        getfacl -R / > rights.acl
        
        dann auf dem Zielsystem die kopierte rights.acl mit:
        cd /
        setfacl --restore=rights.acl
        
        
        1 Reply Last reply Reply Quote 0
        • Bluefox
          Bluefox last edited by

          @sissiwup:

          Hallo,

          habe mir grade meinen PI komplett zerschossen, da ich das reinstall.sh Skript aufgerufen habe.

          Leider ist der chmod 777 auf Ebene / gelaufen. Damit ist alles kaputt.

          #!/bin/bash
          iobroker stop
          ls -1 ./node_modules | grep iobroker. > list.txt
          cd node_modules; 
          rm * -R
          cd ..
          while read in; do npm install $in --production; cd node_modules/$in/; npm install --production; cd ../..; done < list.txt
          chmod 777 * -R
          rm list.txt
          iobroker upload all
          

          Hat bei mir den ganzen PI mit "777" beglückt und munter ins Hauptverzeichnis installiert

          #!/bin/bash
          cd /opt/iobroker
          iobroker stop
          ls -1 ./node_modules | grep iobroker. > list.txt 
          rm /opt/iobroker/node_modules/* -R
          cd /opt/iobroker
          while read in; do cd /opt/iobroker; npm install $in --production; cd node_modules/$in/; npm install --production; cd ../..; done < list.txt
          cd /opt/iobroker
          chmod 777 * -R
          cp list.txt list.txt.org
          iobroker upload all
          ```` `  
          

          Es ist natürlich unschön, dass die Rechte zerstört sind.

          Aber ich wollte ein Skript schreiben, der nicht nur in /opt/iobroker läuft.

          Wie hast du denn reinstall.sh gestartet?

          cd  /opt/iobroker
          ./node_modules/iobroker.js-controller/reinstall.sh
          
          

          ?

          1 Reply Last reply Reply Quote 0
          • sissiwup
            sissiwup last edited by

            Hallo,

            das skript liegt bei mir im Verzeichnis

            /opt/iobroker

            und dort habe ich es auch gestartet.

            1 Reply Last reply Reply Quote 0
            • Bluefox
              Bluefox last edited by

              @sissiwup:

              Hallo,

              das skript liegt bei mir im Verzeichnis

              /opt/iobroker

              und dort habe ich es auch gestartet. `
              Wie währe dann die Lösung, dass es aus beliebiges Verzeichnis läuft?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Support us

              ioBroker
              Community Adapters
              Donate
              FAQ Cloud / IOT
              HowTo: Node.js-Update
              HowTo: Backup/Restore
              Downloads
              BLOG

              727
              Online

              31.9k
              Users

              80.3k
              Topics

              1.3m
              Posts

              2
              5
              1063
              Loading More Posts
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes
              Reply
              • Reply as topic
              Log in to reply
              Community
              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
              The ioBroker Community 2014-2023
              logo