diff --git a/support/cron b/support/crontab similarity index 52% rename from support/cron rename to support/crontab index 0c6a4db..ffa55e0 100644 --- a/support/cron +++ b/support/crontab @@ -1,4 +1,4 @@ SHELL=/bin/sh PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin -0 0 * * * app -n /home/app/openbsd.app/upgrade.sh && /etc/rc.d/openbsd_app restart +0 0 * * * app -n /home/app/openbsd.app/upgrade.sh && doas /etc/rc.d/openbsd_app restart diff --git a/support/doas.conf b/support/doas.conf new file mode 100644 index 0000000..64462c6 --- /dev/null +++ b/support/doas.conf @@ -0,0 +1,2 @@ +permit persist :wheel +permit nopass app as root cmd /etc/rc.d/openbsd_app args restart