Add setup-doas improvements
This commit is contained in:
parent
0b5e414d2c
commit
c68eebf4a5
2 changed files with 11 additions and 5 deletions
|
@ -16,9 +16,12 @@ sharedir="${localbase}"/share/sourcezap
|
||||||
# main
|
# main
|
||||||
src="${sharedir}"/doas.conf
|
src="${sharedir}"/doas.conf
|
||||||
dest="${localbase}"/etc/doas.conf
|
dest="${localbase}"/etc/doas.conf
|
||||||
if grep -Fq "$(cat "${src}")" "${dest}"; then
|
cat "${src}" |
|
||||||
printok "doas.conf is up to date"
|
while read -r line; do
|
||||||
else
|
if grep -q "${line}" "${dest}"; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
cat "${src}" >> "${dest}"
|
cat "${src}" >> "${dest}"
|
||||||
printok "${dest} updated"
|
printok "modified ${dest}"
|
||||||
fi
|
break
|
||||||
|
done
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
* vNEXT
|
* vNEXT
|
||||||
|
|
||||||
|
** Add 'setup/setup-doas' improvements
|
||||||
|
More likely to do what's expected, but blind spots still exist
|
||||||
|
|
||||||
** Add 'sourcezap setup', 'sourcezap teardown'
|
** Add 'sourcezap setup', 'sourcezap teardown'
|
||||||
Replaces and enhances 'setup-sourcezap'
|
Replaces and enhances 'setup-sourcezap'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue