Package installation issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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,
--
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux