Don’t use the synology git package.
But then Git’s not installed.
I found a compromise:
- Install the package
- disable it
- switch back the shells in /etc/passwd from
to /bin/sh
Be happy.
Don’t use the synology git package.
But then Git’s not installed.
I found a compromise:
Be happy.
Ich besitze ab neulich eine wundervolle Synology DS414. Schönes Teil.
Und da ich aktuell ein wenig programmiere zu Hause wollte ich mir hier ein Git repository server einrichten. Das ist nicht ganz trivial, und wer sich github- oder gitlab-ähnlichen Komfort erhofft … ah, nö. Es ist commandline only, und davon viel. Aber zum Punkt – der schnellstmöglichen Einrichtung eines Git-Repo-Servers auf einer Diskstation.
Systemsteuerung > Terminal muss aktiviert sein.Systemsteuerung > Benutzer, dann oben ein Knopf Benutzerbasis (der 2. von rechts bei mir)/volume1/gitrepos./volume1/homes/<Benutzer> erreichbar sein, das Volume hat man vorhin in Schritt (1) ausgewählt. (natürlich muss .ssh/ 0600 und .ssh/authorized_keys 0700 und /volume1/gitrepos wechseln, ein Verzeichnis anlegen …git init --bare ausführen, … und/volume1/gitrepos/my_repogit remote add origin <user>@<diskstation>:/volume1/gitrepos/my_repoGanz einfach, oder? Naja.
Quellen: Synology Wiki, Synology Forum