mirror of
https://abf.rosa.ru/djam/i2pd.git
synced 2025-02-23 09:12:48 +00:00
update spec. pre post postun
This commit is contained in:
parent
82783bb768
commit
a6080659df
1 changed files with 13 additions and 13 deletions
26
i2pd.spec
26
i2pd.spec
|
@ -58,25 +58,25 @@ install -Dm0644 debian/logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||||
cp -r contrib/certificates %{buildroot}%{_datadir}/%{name}/
|
cp -r contrib/certificates %{buildroot}%{_datadir}/%{name}/
|
||||||
|
|
||||||
%post
|
%post
|
||||||
#/sbin/chkconfig --add %{name}
|
/sbin/chkconfig --add %{name}
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
#if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
# /sbin/service %{name} stop &>/dev/null
|
/sbin/service %{name} stop &>/dev/null
|
||||||
# /sbin/chkconfig --del %{name}
|
/sbin/chkconfig --del %{name}
|
||||||
#fi
|
fi
|
||||||
#exit 0
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
#if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
# /sbin/service %{name} condrestart &>/dev/null
|
/sbin/service %{name} condrestart &>/dev/null
|
||||||
#fi
|
fi
|
||||||
#exit 0
|
exit 0
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
#groupadd -f -r i2pd >/dev/null 2>&1 || :
|
groupadd -f -r i2pd >/dev/null 2>&1 || :
|
||||||
#useradd -M -n -g i2pd -r -d /var/lib/i2pd -s /bin/bash \
|
useradd -M -n -g i2pd -r -d /var/lib/i2pd -s /bin/bash \
|
||||||
# -c "user for i2pd router" i2pd >/dev/null 2>&1 || :
|
-c "user for i2pd router" i2pd >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md LICENSE docs/configuration.md
|
%doc README.md LICENSE docs/configuration.md
|
||||||
|
|
Loading…
Add table
Reference in a new issue