1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jupyterlab_ynh.git synced 2024-09-03 19:26:35 +02:00

Specify user and group in systemd unit file

Fix CI warning
This commit is contained in:
Jules-Bertholet 2021-05-28 19:40:15 -04:00 committed by GitHub
parent 76643860b1
commit 564793c465
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,10 +6,12 @@ After=syslog.target network.target
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
Environment="PATH=__NODE_PATH__:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
USER=__APP__
GROUP=__APP__
ExecStart=/usr/local/bin/pipenv run jupyterhub -f __FINALPATH__/config/jupyterhub_config.py
Restart=always
RestartSec=10
WorkingDirectory=__FINALPATH__
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target