2022-08-24 10:54:37 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Moodle Import Worker
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
|
|
|
|
# Needs to run as the user Moodle runs as
|
|
|
|
User=www-data
|
|
|
|
Group=www-data
|
|
|
|
|
|
|
|
WorkingDirectory=/opt/moodle-import-worker/
|
|
|
|
ExecStart=/usr/bin/env python3 /opt/moodle-import-worker/worker.py
|
2022-09-10 04:54:33 +00:00
|
|
|
ExecStartPost=/bin/sh -c "/bin/rm -r /var/www/html/moodledata/temp/backup/*"
|