Skip to content

Commit 16844ed

Browse files
committed
Cron can run as a non super user as well
1 parent 03501b1 commit 16844ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ubuntu/16.04/etc/confd/templates/supervisor/cron.conf.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ stdout_logfile_maxbytes=0
55
stderr_logfile=/dev/stderr
66
stderr_logfile_maxbytes=0
77
loglevel = warn
8+
{{ if not (eq "true" (getenv "NON_PRIVILEGED_USER")) }}
89
user = root
10+
{{ end }}
911
autostart = {{ getenv "START_CRON" }}
1012
autorestart = true
1113
priority = 5
12-

0 commit comments

Comments
 (0)