From 09df6d3a02d81df2167d0894a46ce03d92a7fd5a Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 12 Mar 2022 19:13:25 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'services/pad.libre?= =?UTF-8?q?-service.eu.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/pad.libre-service.eu.md | 33 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/services/pad.libre-service.eu.md b/services/pad.libre-service.eu.md index fd88bba..f9ce64a 100644 --- a/services/pad.libre-service.eu.md +++ b/services/pad.libre-service.eu.md @@ -106,24 +106,12 @@ systemctl restart postgresql.service ### Création d'un utilisateur système dédié -Créer un utilisateur système dédié : +Créer un compte système dédié : ``` -adduser \ - --system \ - --shell /bin/bash \ - --gecos 'Git Version Control' \ - --group \ - --disabled-password \ - --home /srv/etherpad/ \ - git - -groupmod -n git +adduser --disabled-password --system --group --home /srv/etherpad/ ``` -Créer un compte dédié : -``` -adduser --disabled-password --system --group --home /srv/pad.libre-service.eu/ -``` +### Déploiement du code Déployer le code : ``` @@ -134,7 +122,7 @@ chown -R etherpad:etherpad /var/www/pad.libre-service.eu Premier lancement : ``` -su -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh" etherpad +su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh" ``` @@ -169,7 +157,7 @@ Define a password for the admin user:Advertisement Installer les dépendances nécessaires : ``` -./bin/installDeps.sh +su etherpad -c "cd /var/www/pad.libre-service.eu/ && ./bin/installDeps.sh" ``` @@ -186,10 +174,10 @@ After=syslog.target network.target Type=simple User=etherpad Group=etherpad -WorkingDirectory=/opt/etherpad/etherpad-lite +WorkingDirectory=/var/www/pad.libre-service.eu/ Environment=NODE_ENV=production -ExecStart=/usr/bin/node /opt/etherpad/etherpad-lite/src/node/server.js +ExecStart=/usr/bin/node /var/www/pad.libre-service.eu/src/node/server.js Restart=always @@ -215,7 +203,12 @@ systemctl enable etherpad ``` # Mise à jour +Documentation: +``` +To update to the latest released version, execute git pull origin. The next start with src/bin/run.sh will update the dependencies. +``` +So proceed: ``` systemctl stop etherpad cd /var/www/pad.libre-service.eu/ @@ -224,5 +217,3 @@ git pull ???????? systemctl start etherpad ``` - -