Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Split the post(un)installation scripts between the library and the bi…
…nary
  • Loading branch information
Vesa Halttunen committed May 13, 2013
1 parent c655cdd commit 5ab3296
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions rpm/transfer-engine-qt5.spec
Expand Up @@ -119,18 +119,21 @@ cp -R doc/html/* %{buildroot}/%{_docdir}/%{name}/
%define db_file /home/%{def_user}/.local/nemo-transferengine/transferdb.sqlite
%define te_pid $(pgrep -f nemo-transfer-engine)

%post -n nemo-transferengine-qt5
%post -n libnemotransferengine-qt5
/sbin/ldconfig

%post -n nemo-transferengine-qt5
if [ -n "%{te_pid}" ]
then
kill -s 10 %{te_pid}
fi

exit 0

%postun -n nemo-transferengine-qt5
%postun -n libnemotransferengine-qt5
/sbin/ldconfig

%postun -n nemo-transferengine-qt5
if [ -f "%{db_file}" ]
then
rm %{db_file}
Expand Down
7 changes: 5 additions & 2 deletions rpm/transfer-engine.spec
Expand Up @@ -115,18 +115,21 @@ cp -R doc/html/* %{buildroot}/%{_docdir}/%{name}/
%define db_file /home/%{def_user}/.local/nemo-transferengine/transferdb.sqlite
%define te_pid $(pgrep -f nemo-transfer-engine)

%post -n nemo-transferengine
%post -n libnemotransferengine
/sbin/ldconfig

%post -n nemo-transferengine
if [ -n "%{te_pid}" ]
then
kill -s 10 %{te_pid}
fi

exit 0

%postun -n nemo-transferengine
%postun -n libnemotransferengine
/sbin/ldconfig

%postun -n nemo-transferengine
if [ -f "%{db_file}" ]
then
rm %{db_file}
Expand Down

0 comments on commit 5ab3296

Please sign in to comment.