Replace hard-coded references to /usr/local/

This commit is contained in:
0x1eef 2024-04-15 16:48:06 -03:00
parent a284e48a4d
commit 786c0d86ff
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,8 @@
gitdir=$1
installdir=$2
revfile=$3
libexec="/usr/local/libexec/portzap"
localbase="${LOCALBASE:-/usr/local}"
libexec="${localbase}/libexec/portzap"
mode="u=rwX,g=rwX,o="
##

View file

@ -2,8 +2,9 @@
##
# variables
conf=$(cat /usr/local/share/portzap/doas.conf)
doas=/usr/local/etc/doas.conf
localbase="${LOCALBASE:-/usr/local}"
conf=$(cat "${localbase}"/share/portzap/doas.conf)
doas="${localbase}"/etc/doas.conf
##
# main