Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceWonderMiscreations committed Feb 23, 2018
1 parent e37e9ae commit e0937db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/jsonDatabaseScripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ A macro should define the full path to the script, e.g.
Then in the `%post` section of the spec file:

%post
%{ccmaddpkg} %{branch} %{pkgvendor} %{pkgname} %{pkgversion} %{pkgsecurityv} %{pkgtweakv}
%{ccmaddpkg} %{branch} %{pkgvendor} %{pkgname} %{pkgversion} %{pkgsecurityv} %{pkgtweakv} || :

The `|| :` prevents issues with RPM if the script fails with a bad exit status.

Please see the [RPM Spec File Standard](https://github.com/AliceWonderMiscreations/php-ccm/blob/master/RPM_SPEC.md)
for more information on RPM packaging of CCM libraries.
Expand All @@ -56,7 +58,7 @@ Then in the `%postun` section of the spec file:

%postun
if [ "$1" -ge 1 ]; then
%{ccmdelpkg} %{branch} %{pkgvendor} %{pkgname}
%{ccmdelpkg} %{branch} %{pkgvendor} %{pkgname} || :
fi

In the condition `if then` clause, the argument `$1` is how many packages of
Expand Down

0 comments on commit e0937db

Please sign in to comment.