NEWS
Reinstall.sh Fehlerhaft
-
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 allHat 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 -
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 -
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 allHat 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?
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden