From 009fb0dfddcb70d119dec98bcba824f2ca650942 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 13 Jun 2012 11:31:03 -0400 Subject: Generalize this reference --- config/quagga_ospfd/quagga_ospfd.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/quagga_ospfd') 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 -- cgit v1.2.3