Cleanup section modified or added.

This commit is contained in:
2017-10-07 15:41:39 +02:00
parent dbca6da7c2
commit 537f813f95
4 changed files with 15 additions and 0 deletions

View File

@@ -240,6 +240,9 @@ install -m 0644 selinux/%{name}.pp %{buildroot}%{_datadir}/selinux/packages/%{na
# Create apache user auth file (backuppc/backuppc):
/usr/bin/htpasswd -b -c %{buildroot}%{_sysconfdir}/%{name}/apache.users %{bpcuser} %{bpcuser}
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
%pre
%{_sbindir}/useradd -d %{_localstatedir}/lib/%{name} -r -s /sbin/nologin %{bpcuser} 2> /dev/null || :