Mise à jour de 'services/pad.libre-service.eu.md'
This commit is contained in:
parent
c1ffb1dbd4
commit
09df6d3a02
1 changed files with 12 additions and 21 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue