Commit 937d9a25 authored by Noah Hilverling's avatar Noah Hilverling
Browse files

Merge branch 'bugfix/user-home' into 'master'

Make /etc/icingadb the home dir of icingadb

See merge request !2
parents 5c18ce35 0e5ebae2
Pipeline #12174 failed with stages
in 9 minutes and 23 seconds
...@@ -127,7 +127,7 @@ install -D -m 0640 %{SOURCE3} %{buildroot}%{_sysconfdir}/icinga-redis/icingadb-r ...@@ -127,7 +127,7 @@ install -D -m 0640 %{SOURCE3} %{buildroot}%{_sysconfdir}/icinga-redis/icingadb-r
%pre %pre
getent group icingadb >/dev/null || groupadd -r icingadb getent group icingadb >/dev/null || groupadd -r icingadb
getent passwd icingadb >/dev/null || useradd -r -g icingadb -d / -s /sbin/nologin -c 'Icinga DB' icingadb getent passwd icingadb >/dev/null || useradd -r -g icingadb -d /etc/icingadb -s /sbin/nologin -c 'Icinga DB' icingadb
%if "%{_vendor}" == "suse" %if "%{_vendor}" == "suse"
%service_add_pre %{service} %service_add_pre %{service}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment