sys

git clone git://mattcarlson.org/repos/sys.git
Log | Files | Refs

commit 0d1980f27347f9844d3cd82c5857067cc363ccdd
parent 0c4a08a34c053563a9c6d2b2b2d82ed4377aaeb2
Author: Matthew Carlson <matt@mcarlson.xyz>
Date:   Thu,  2 Dec 2021 16:17:52 -0500

added doas cmds to use without pwd

Diffstat:
Metc/crontab | 10+++++-----
Metc/doas.conf | 2++
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/etc/crontab b/etc/crontab @@ -1,5 +1,5 @@ -0 12 * * * su -c '/home/mc/.local/bin/backup.sh' -0 * * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/bar/mail.sh -g' mc -0 * * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/bar/pkgs.sh -g' mc -0 * * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/bar/rss.sh -g' mc -0 12 * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/vultr.sh' mc +0 12 * * * su -c '/home/mc/.local/bin/backup.sh' + 0 * * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/bar/mail.sh -g' mc + 0 * * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/bar/pkgs.sh -g' mc + 0 * * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/bar/rss.sh -g' mc +0 12 * * * su -c '. ${HOME}/.profile; /home/${USER}/.local/bin/vultr.sh' mc diff --git a/etc/doas.conf b/etc/doas.conf @@ -3,6 +3,8 @@ permit persist nolog mc as root # cmds permit nopass mc cmd ddcutil +permit nopass mc cmd mv args "/etc/hosts" "/home/mc/.local/share/" +permit nopass mc cmd mv args "/home/mc/.local/share/hosts" "/etc/" permit nopass mc cmd pacman args -Sy permit nopass mc cmd printf permit nopass mc cmd shutdown