UB: Pro
[stratum0-wiki.git] / Gapadriel.mw
index 0df2f10..77868ca 100644 (file)
@@ -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
@@ -64,19 +64,22 @@ Etherpad-Updates etc. bitte per <tt>sudo</tt>, nicht <tt>sudo -u etherpad</tt>.
  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
- sudo npm install --unsafe-perm wd
- sudo bin/installDeps.sh  # und dann warten.
+ # 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
-
- # irgendwas geht schief. Einmal als root starten hilft. wtf, etherpad?
- sudo bin/run.sh --root  # und dann strg-c drücken
-
+ # 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 <tt>node_modules/</tt> nicht schreiben soll. Stattdessen:
@@ -99,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 \
This page took 0.02963 seconds and 4 git commands to generate.