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
|
gitdir=$1
|
||||||
installdir=$2
|
installdir=$2
|
||||||
revfile=$3
|
revfile=$3
|
||||||
libexec="/usr/local/libexec/portzap"
|
localbase="${LOCALBASE:-/usr/local}"
|
||||||
|
libexec="${localbase}/libexec/portzap"
|
||||||
mode="u=rwX,g=rwX,o="
|
mode="u=rwX,g=rwX,o="
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
|
|
||||||
##
|
##
|
||||||
# variables
|
# variables
|
||||||
conf=$(cat /usr/local/share/portzap/doas.conf)
|
localbase="${LOCALBASE:-/usr/local}"
|
||||||
doas=/usr/local/etc/doas.conf
|
conf=$(cat "${localbase}"/share/portzap/doas.conf)
|
||||||
|
doas="${localbase}"/etc/doas.conf
|
||||||
|
|
||||||
##
|
##
|
||||||
# main
|
# main
|
||||||
|
|
Loading…
Reference in a new issue