aboutsummaryrefslogtreecommitdiffstats
path: root/config/quagga_ospfd
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-06-13 11:31:03 -0400
committerjim-p <jimp@pfsense.org>2012-06-13 11:31:03 -0400
commit009fb0dfddcb70d119dec98bcba824f2ca650942 (patch)
treef5e355a3677b0b67d2c2c9fa773f7c4060dec394 /config/quagga_ospfd
parentca2a1029c0e325e387c7f5116539646cc8070508 (diff)
downloadpfsense-packages-009fb0dfddcb70d119dec98bcba824f2ca650942.tar.gz
pfsense-packages-009fb0dfddcb70d119dec98bcba824f2ca650942.tar.bz2
pfsense-packages-009fb0dfddcb70d119dec98bcba824f2ca650942.zip
Generalize this reference
Diffstat (limited to 'config/quagga_ospfd')
-rw-r--r--config/quagga_ospfd/quagga_ospfd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc
index d62c0efa..831a91b0 100644
--- a/config/quagga_ospfd/quagga_ospfd.inc
+++ b/config/quagga_ospfd/quagga_ospfd.inc
@@ -242,10 +242,10 @@ EOF;
rm -f /var/run/quagga/zebra.pid
rm -f /var/run/quagga/ospfd.pid
-if [ `pw groupshow quagga 2>&1 | grep -c "pw: unknown group"` -gt 0 ]; then
+if [ `pw groupshow {$pkg_group} 2>&1 | grep -c "pw: unknown group"` -gt 0 ]; then
/usr/sbin/pw groupadd {$pkg_group} -g {$pkg_gid}
fi
-if [ `pw usershow quagga 2>&1 | grep -c "pw: no such user"` -gt 0 ]; then
+if [ `pw usershow {$pkg_login} 2>&1 | grep -c "pw: no such user"` -gt 0 ]; then
/usr/sbin/pw useradd {$pkg_login} -u {$pkg_uid} -g {$pkg_gid} -c "{$pkg_gecos}" -d {$pkg_homedir} -s {$pkg_shell}
fi