-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reparatur-Script erstellt #17
Conversation
Es soll den Benutzer erleichtern, MySpeed bei Problemen zu reparieren. Alle Fortschritte und Infos werden angezeigt, farbliche Infos wurden ebenfalls (wie im Installations- und Deinstallationsscript) angepasst. Zudem werden Dienste (wie npm und Build Essentials) und das Linux System auf dem neuesten Stand gebracht, damit mögliche Bugfixes installiert werden können. Am Ende wird zur Sicherheit MySpeed neu gestartet, am Ende der Reparatur wird auch noch einmal die IP mit dem Port gezeigt, wo die Weboberfläche zu finden ist. Außerdem wird einem auch noch einmal hingewiesen, das man ein Issue erstellen kann, wenn andere unbekannte Fehler auftreten sollten, die dieses Script nicht beheben kann.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Erstmal möchte ich dir natürlich für die Arbeit danken. Das ist nicht selbstverständlich.
Ich finde die Idee von einem Installationsskript gut, allerdings gibt es ab der neueren Version die Bugs, die hier behoben werden, nich mehr.
Ich bin dabei in der Review nochmal auf einige dieser Probleme eingegangen.
Trotzdem vielen Dank für die Idee. Vielleicht führe ich zukünftig ein solches Skript mal ein, mal sehen :)
clear | ||
echo -e "$BLUE🔎 Status:$NORMAL Umgebungsvariable wird geändert..." | ||
# see in wiki Fehlerbehebung -> Cannot get / | ||
export NODE_ENV=production |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das setzen dieser Variable ändert die Umgebung leider nur temporär (Bis das Skript endet). Ist das Skript fertig, wird diese Variable wieder entfernt
echo -e "$BLUE🔎 Status:$NORMAL Vorhandene Module werden entfernt..." | ||
cd / | ||
cd /opt/myspeed | ||
rm -R node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seit dem Commit 6525ef7 wird der Prozess vom Neuinstallieren der Pakete direkt im Installationsskript ausgeführt, wird also hier nicht mehr benötigt
cd / | ||
clear | ||
echo -e "$BLUE🔎 Status:$NORMAL npm wird aktualisiert..." | ||
curl https://www.npmjs.com/install.sh | sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das installieren von npm verwaltet hier in dem Fall das System selbst. Wir brauchen also nicht nochmals npm installieren
clear | ||
echo -e "$BLUE🔎 Status:$NORMAL Berechtigungen werden festgelegt..." | ||
# setup permissions | ||
chmod 700 /opt/myspeed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Die Berechtigungen werden ja bereits im Installationsskript geändert. Passt man das manuell nicht an, so sollten sich die Berechtigungen hier normal auch nicht ändern
curl https://www.npmjs.com/install.sh | sh | ||
clear | ||
echo -e "$BLUE🔎 Status:$NORMAL Es wird nach Updates für das Linux-System gesucht..." | ||
sudo apt-get update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das Installieren der neusten Softwarepakete sollte schon bereits in der Installation passiert sein und sollte nach der Installation keine Folgen haben, warum MySpeed nicht mehr funktioniert
chmod 700 /opt/myspeed | ||
clear | ||
echo -e "$BLUE🔎 Status:$NORMAL Es wird überprüft, ob Build Essantials installiert ist..." | ||
sudo apt-get install build-essential |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seit dem neusten Update am Server (#25) wird dieses Paket nun nicht mehr benötigt, da wir von speedtest-net
auf ein eigenes System umgestiegen sind, da das alte Projekt leider nicht mehr verwaltet wird
Es soll den Benutzer erleichtern, MySpeed bei Problemen zu reparieren. Alle Fortschritte und Infos werden angezeigt, farbliche Infos wurden ebenfalls (wie im Installations- und Deinstallationsscript) angepasst. Zudem werden Dienste (wie npm und Build Essentials) und das Linux System auf dem neuesten Stand gebracht, damit mögliche Bugfixes installiert werden können. Am Ende wird zur Sicherheit MySpeed neu gestartet, am Ende der Reparatur wird auch noch einmal die IP mit dem Port gezeigt, wo die Weboberfläche zu finden ist. Außerdem wird einem auch noch einmal hingewiesen, das man ein Issue erstellen kann, wenn andere unbekannte Fehler auftreten sollten, die dieses Script nicht beheben kann.