Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1538618 Details for
Bug 1666493
Review Request: OpenLiberty - Server runtime for Java Developers
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh109 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
Migrated Products
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Updated spec file v2
openliberty.spec (text/plain), 3.30 KB, created by
Michael.Zhang
on 2019-02-25 23:04:57 UTC
(
hide
)
Description:
Updated spec file v2
Filename:
MIME Type:
Creator:
Michael.Zhang
Created:
2019-02-25 23:04:57 UTC
Size:
3.30 KB
patch
obsolete
># This is the spec file for rpm openliberty creation > >%define _topdir /home/travis/build/was-lighthouse/openliberty-rpmdeb/rpmbuild >%define name openliberty >%define version 19.0.0.1 >%define buildroot %{_topdir}/BUILDROOT/%{name}-root > >Summary: Open Liberty >License: EPL-1.0 >Name: %{name} >Version: %{version} >Release: 1%{?dist} >Source: %{name}-%{version}.tar.gz >BuildArch: noarch >URL: https://openliberty.io >Packager: IBM >Suggests: java >= 1:1.8.0 > >%description >Open Liberty provides developers with Java EE 8 technology >and Eclipse MicroProfile capabilities for building micro-services > >%install >#Unpacking the tar into the openliberty folder >mkdir -p %{buildroot}/usr/share/%{name} >cd %{buildroot}/usr/share/%{name} >tar -zxf %{_topdir}/SOURCES/%{name}-%{version}.tar.gz > >#Creating the server folder and moving defaultServer zip to /usr/share/openliberty >mkdir -p %{buildroot}/usr/share/%{name} >cp %{_topdir}/SOURCES/defaultServer.zip %{buildroot}/usr/share/%{name} > >#Creating the scripts >mkdir -p %{buildroot}/usr/libexec >cp %{_topdir}/SOURCES/scripts/openliberty %{buildroot}/usr/libexec > >#Creating the service >mkdir -p %{buildroot}/usr/lib/systemd/system >cp %{_topdir}/SOURCES/scripts/openliberty@.service %{buildroot}/usr/lib/systemd/system > >#Moving LICENSE file to doc and license >mkdir -p %{buildroot}/usr/share/doc/%{name} >mv %{buildroot}/usr/share/%{name}/LICENSE %{buildroot}/usr/share/doc/%{name} > >exit 0 > >%files >%defattr(-,root,root) >/usr/libexec >/usr/share/doc/%{name} >/usr/share/%{name} >/usr/lib/systemd/system > >%changelog >* Fri Feb 22 2019 Michael Zhang <michael.zhang@ibm.com> - 19.0.0.1-1 >- First Open Liberty package > >%preun >pidDir=/var/run/openliberty >if ( ls $pidDir/*.pid > /dev/null 2>&1 ); then > printf "Your server(s) are still running. Stop them before uninstalling/upgrading!\n" > for pidFiles in $pidDir/*.pid > do > server=$(basename $pidFiles) > serverName="${server%.*}" > echo "Server - $serverName with process id $(cat $pidFiles)" > done > exit 1 >fi >exit 0 > >%post >echo "Adding group - openliberty" >if (! getent group openliberty > /dev/null 2>&1); then > groupadd --system openliberty >fi > >echo "Adding user - openliberty" >if (! id openliberty > /dev/null 2>&1); then > adduser --system --home-dir /usr/share/openliberty --no-create-home -g openliberty --shell /bin/bash openliberty >fi > >if [ -x "/usr/libexec/openliberty" ] && [ -r "/usr/lib/systemd/system/openliberty@.service" ]; then > systemctl daemon-reload > systemctl enable openliberty@defaultServer.service >fi > >echo "Setting up defaultServer for user" >mkdir -p /var/local/openliberty/usr/servers >if [ ! -d "/var/local/openliberty/usr/servers/defaultServer" ]; then > unzip /usr/share/openliberty/defaultServer.zip -d /var/local/openliberty/usr/servers > printf "\nLOG_DIR=/var/log/openliberty/defaultServer" >> /var/local/openliberty/usr/servers/defaultServer/server.env >fi >mkdir -p /var/run/openliberty >mkdir -p /var/log/openliberty > >echo "Setting permissions to files/folders" >chown -R openliberty:openliberty /var/local/openliberty >chmod -R u+w /var/local/openliberty >chown -R openliberty:openliberty /var/run/openliberty >chmod -R u+w /var/run/openliberty >chown -R openliberty:openliberty /var/log/openliberty >chmod -R u+w /var/log/openliberty >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1666493
:
1522183
| 1538618