]> git.pld-linux.org Git - packages/nagios.git/commitdiff
add nagioshome macro
authorElan Ruusamäe <glen@delfi.ee>
Wed, 29 Apr 2015 16:38:45 +0000 (19:38 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 29 Apr 2015 16:38:45 +0000 (19:38 +0300)
nagios.spec

index 214f11c51164431b023be03e1cbc96365d2bbca7..78e8f8ea1750287b50aa4d2d3b0ccb01e79a698e 100644 (file)
@@ -74,6 +74,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _sysconfdir     /etc/%{name}
 %define                cgidir          %{_libdir}/%{name}/cgi
 %define                htmldir         %{_prefix}/share/%{name}
+%define                nagioshome      %{_libdir}/%{name}
 %define                _localstatedir  /var/lib/%{name}
 %define                _webapps        /etc/webapps
 %define                _webapp         %{name}
@@ -408,9 +409,9 @@ fi
 %groupadd -g 72 nagios
 %groupadd -g 147 -f nagcmd
 if [ -n "$(id -u netsaint 2>/dev/null)" ] && [ "$(id -u netsaint)" = "72" ]; then
-       /usr/sbin/usermod -d %{_libdir}/%{name} -l nagios -c "Nagios Daemon" -G nagcmd netsaint
+       /usr/sbin/usermod -d %{nagioshome} -l nagios -c "Nagios Daemon" -G nagcmd netsaint
 fi
-%useradd -u 72 -d %{_libdir}/%{name} -s /bin/false -c "Nagios Daemon" -g nagios -G nagcmd nagios
+%useradd -u 72 -d %{nagioshome} -s /bin/false -c "Nagios Daemon" -g nagios -G nagcmd nagios
 
 %postun common
 if [ "$1" = "0" ]; then
This page took 0.057018 seconds and 4 git commands to generate.