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,
--
Danishka Navin
http://danishkanavin.blogspot.comhttp://twitter.com/danishkanavin
I've created a review request[1] for fedora-repo-zdicts[2], a package
that will contain zchunk dictionaries to increase the efficiency of
compressing Fedora's repository metadata using zchunk.
The dictionaries are built from Fedora's metadata and are only useful
for Fedora (and, possibly EPEL, if we ever generate zchunk metadata for
EPEL in the distant future), thus the name.
Before I do the SCM request, I just wanted to verify that there aren't
any problems using "fedora" in the package name.
Thanks,
Jonathan
1: https://bugzilla.redhat.com/show_bug.cgi?id=1656627
2: https://pagure.io/fedora-repo-zdicts/
Hi,
This page
https://fedoraproject.org/wiki/Packaging:JavaScript
is terribly outdated. Even when it was created years ago, IMO the advice
was questionable. Today, it's definitely bad advice.
Modern web applications use webpack for JavaScript. With webpack,
JavaScript is minified and bundled, and sometimes assets are even injected.
I realize bundling libraries is bad for an old-school RPM-based
application. But no one packages JavaScript into RPMs (try to find react
and friends), and the page is leading to confusion on my team.
To prevent confusion, acceptable options would be: either simply deleting
the page, or placing a giant "don't follow this outdated advice" banner at
the top.
Best wishes,
Greg
--
GREG SHEREMETA
SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
Red Hat NA
<https://www.redhat.com/>
gshereme(a)redhat.com IRC: gshereme
<https://red.ht/sig>