1
0
mirror of https://github.com/slicer69/doas synced 2024-06-29 05:54:20 +00:00

Fixed error where doas could try to run doas again.

This commit is contained in:
Jesse Smith 2021-01-25 14:25:28 -04:00
parent b69b314bc1
commit 3b3aef99a1

7
vidoas
View File

@ -28,6 +28,7 @@ PROG="${0##*/}"
umask 022
DOAS_CONF=@DOAS_CONF@
doas_conf_mode="0600"
die()
{
@ -230,9 +231,9 @@ then
warn "No changes made"
warn "${DOAS_CONF} unchanged"
else
doas -- install -o root -m "${doas_conf_mode}" \
"${tmp_doas}" "${installed_doas}" \
&& warn "${installed_doas} updated"
install -o root -m "${doas_conf_mode}" \
"${tmp_doas}" "${DOAS_CONF}" \
&& warn "${DOAS_CONF} updated"
fi
else
warn "Not installing an empty doas.conf file"