renommage des fichiers en tchap-beta
This commit is contained in:
@@ -34,9 +34,9 @@ Pour que les messages apparaissent authentifiés, il faut se connecter sur [Tcha
|
|||||||
En plus des commandes précédentes :
|
En plus des commandes précédentes :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
sudo cp tchap-beta.service /lib/systemd/system/
|
||||||
cd ..
|
cd ..
|
||||||
mv tchap-beta /opt/tchap-beta
|
mv tchap-beta /opt/
|
||||||
sudo cp /opt/tchap-beta/tchap-beta.service /lib/systemd/system/
|
|
||||||
sudo adduser --system chatbeta
|
sudo adduser --system chatbeta
|
||||||
sudo systemctl enable --now tchap-beta.service
|
sudo systemctl enable --now tchap-beta.service
|
||||||
````
|
````
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# /lib/systemd/system/tchapbeta.service
|
# /lib/systemd/system/tchap-beta.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Tchap Beta
|
Description=Tchap Beta
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=chatbeta
|
User=chatbeta
|
||||||
WorkingDirectory=/opt/tchapbeta
|
WorkingDirectory=/opt/tchap-beta
|
||||||
ExecStart=/opt/tchapbeta/.venv/bin/python tchapbeta.py
|
ExecStart=/opt/tchap-beta/.venv/bin/python tchap-beta.py
|
||||||
Restart=always
|
Restart=always
|
||||||
Environment=PYTHONUNBUFFERED=1
|
Environment=PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
Reference in New Issue
Block a user