add doas.conf, entry for app and update crontab to use it

This commit is contained in:
Aaron Bieber 2023-02-02 08:19:08 -07:00
parent 1d725c62d2
commit d4d7ec9d55
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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

2
support/doas.conf Normal file
View File

@ -0,0 +1,2 @@
permit persist :wheel
permit nopass app as root cmd /etc/rc.d/openbsd_app args restart