26s/deploy/web26s.service

16 lines
483 B
Desktop File

[Unit]
Description=acampada26s: comunicados, comisiones y debates desde OASIS
After=oasis.service
[Service]
Type=oneshot
User=oasis
Environment=OASIS_DIR=/home/oasis/oasis
Environment=CUENTA=
Environment=TRIBU=
Environment=WEB=/var/www/acampada26s.net
ExecStart=/bin/sh -c 'set -e; node /opt/26s/tools/extrae.js > /tmp/26s.json; python3 /opt/26s/tools/genera.py "$WEB" < /tmp/26s.json'
NoNewPrivileges=yes
ProtectSystem=strict
ReadWritePaths=/var/www/acampada26s.net
PrivateTmp=yes