Hi,

I have build a package to do following activities.

* extract zip file to documentroot of httpd
* restore mariadb dump
* restart/reload httpd service and enable it.

Package will successfully install if I install using rpm (rpm -ivh ).
When I add the package in to a kickstart and build an ISO, I can see package in the Live system as well as installed system. But none of the above activities complete.

Here is the sketch of my spec.
Btw,  both source files available in /path but not expected result from the %post

%prep

%install
rm -rf $RPM_BUILD_ROOT

%{__install} -p -D -m 0754 %{SOURCE0} $RPM_BUILD_ROOT/path/my.zip
%{__install} -p -D -m 0754 %{SOURCE1} $RPM_BUILD_ROOT/path/mybackup.sql

%post
(basic bash commands to complete above activities.)


%clean
rm -rf %{buildroot}

%files
/path/my.zip
/path/mybackup.sql

Regards,
--