Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
scripts: don't error when pkg.conf doesn't exist
Daniel Shahaf committed 14 years ago
commit f04d4abf608c44918696dc889188182236114109
parent e54e42328f4674bd21c276474cdab903bdd80289
1 file changed +1 -1
modified scripts/periodic/410.pkg-audit
@@ -39,7 +39,7 @@ if [ -r /etc/defaults/periodic.conf ]; then
fi

# Compute PKG_DBDIR from the config file.
-
if [ -z "${PKG_DBDIR}" ]; then
+
if [ -z "${PKG_DBDIR}" ] && [ -f /usr/local/etc/pkg.conf ]; then
  PKG_DBDIR=`sed -ne 's/PKG_DBDIR[[:space:]]*:[[:space:]]*\(.*\)/\1/pI' 
             < /usr/local/etc/pkg.conf`
fi