From 5ab8c9abe3095f1f4c698e5678c7f788634230ab Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Thu, 12 Aug 2021 18:28:39 -0300 Subject: [PATCH] Fix doas config not working if /etc/doas.conf DNE --- post-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/post-install.sh b/post-install.sh index 53de7ca..f33823f 100755 --- a/post-install.sh +++ b/post-install.sh @@ -412,6 +412,7 @@ configure_doas() { prompt_user 'doas will be configured' local DOAS_USER="$USER_OUT" if [ -n "$DOAS_USER" ]; then + touch "$DOAS_CONF" append_line $DOAS_CONF "permit persist $DOAS_USER as root" append_line $DOAS_CONF "permit nopass $DOAS_USER as root cmd pacman args -Syu" append_line $DOAS_CONF "permit nopass $DOAS_USER as root cmd pacman args -Syyu"