diff --git a/webapps-deliverer.service b/webapps-deliverer.service index 4291f7bd48d0c46248b353a64674ccbc9c3ab3a2..96b31450e6c0521dc4b5da369a390fcd4c183ee2 100644 --- a/webapps-deliverer.service +++ b/webapps-deliverer.service @@ -4,12 +4,13 @@ After=network.target [Service] User=nobody +Environment=DATA_PATH=/srv/www/data/ Type=simple StandardOutput=null StandardError=null Restart=no WorkingDirectory=/usr/local/share/webapps-deliverer -ExecStart=/bin/bash -l -c 'source bin/activate;./server' +ExecStart=/bin/bash -l -c "source bin/activate;./server ${DATA_PATH}" [Install] WantedBy=multi-user.target