Replace hard-coded references to /usr/local/
This commit is contained in:
parent
a284e48a4d
commit
786c0d86ff
2 changed files with 5 additions and 3 deletions
|
@ -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="
|
||||
|
||||
##
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue