X-Git-Url: https://git.rohieb.name/stratum0-wiki.git/blobdiff_plain/6bcd736b89803702ffe14fd9eae3eaa4de9d945c..465f49677ad75411dcd856ed22c80bd218a781bd:/Gapadriel.mw diff --git a/Gapadriel.mw b/Gapadriel.mw index b193aeb25..77868cad3 100644 --- a/Gapadriel.mw +++ b/Gapadriel.mw @@ -43,7 +43,7 @@ Debian hat kein npm mehr. Etherpad braucht npm. (Keine schöne, aber eine) Lösu sudo apt install apt-transport-https NODEREPO="node_10.x" DISTRO=$(lsb_release -c -s) - echo "deb-src https://deb.nodesource.com/${NODEREPO} ${DISTRO} main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list + echo "deb https://deb.nodesource.com/${NODEREPO} ${DISTRO} main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list wget https://deb.nodesource.com/gpgkey/nodesource.gpg.key sudo apt-key add nodesource.gpg.key sudo apt update @@ -61,13 +61,25 @@ Etherpad-Updates etc. bitte per sudo, nicht sudo -u etherpad. ==== Update ==== cd /var/lib/etherpad/etherpad-lite sudo git fetch - systemctl stop etherpad.service + sudo systemctl stop etherpad.service sudo git rebase -i $version sudo bin/installDeps.sh # und dann warten. - # wd fails. https://github.com/admc/wd/issues/483#issuecomment-410725658 - suod npm install --unsafe-perm wd - sudo bin/installDeps.sh # und dann warten. - systemctl start etherpad.service + # falls wd failt: (siehe https://github.com/admc/wd/issues/483#issuecomment-410725658 ) + # sudo npm install --unsafe-perm wd + # sudo bin/installDeps.sh # und dann warten. + + sudo chmod go-w . + sudo chown root:etherpad . + sudo chmod g+rw -R var/ # CSS minified cache muss schreibbar sein + sudo chown etherpad:etherpad -R var/ + sudo chmod g+r -R settings.json # config muss lesbar sein + sudo chown root:etherpad settings.json + + # damit etherpad Plugins initialisieren und ep_$module/.ep_initialized anlegen kann -.- + sudo chmod g+w node_modules/ep_* + + sudo systemctl start etherpad.service + sudo chmod g-w node_modules/ep_* ==== Plugins installieren ==== Admin-Login auf der Weboberfläche funktioniert zwar lesend, aber kann halt keine Packages installieren, weil der etherpad-User in node_modules/ nicht schreiben soll. Stattdessen: @@ -90,7 +102,6 @@ Admin-Login auf der Weboberfläche funktioniert zwar lesend, aber kann halt kein ep_latexexport \ ep_markdown \ ep_pad_activity_nofication_in_title \ - ep_ruler \ ep_scrollto \ ep_subscript \ ep_superscript \