https://bugzilla.redhat.com/show_bug.cgi?id=2275304



--- Comment #5 from Kamil Dudka <[email protected]> ---
The interpreter of %post has its stdout/stderr redirected to
`/var/log/osh/hub/post-install-%{name}-%{version}-%{release}.log`:
https://github.com/openscanhub/openscanhub/blob/e800d57100abdc802ab742dee9ddf9d471a65ebd/osh.spec#L253

Hence any output produced in %post is written to a log file as you suggest. 
The pair of commands you quoted just records a timestamp in the log file.  Here
is an example of how the content of the log file looks like:

# cat
/var/log/osh/hub/post-install-osh-0.9.7.20240405.175258.ga916dec.pr_228-1.el9.log
>>> Fri, 05 Apr 2024 18:05:20 +0200
+ umask 0026
+ test -e /var/lib/osh/hub/secret_key
+ pg_isready -h localhost
localhost:5432 - accepting connections
+ /usr/lib/python3.9/site-packages/osh/hub/manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, hub, kobo_auth, scan,
sessions, sites, stats, upload, waiving, xmlrpc
Running migrations:
  No migrations to apply.
+ '[' 2 -eq 1 ']'
>>> Mon, 08 Apr 2024 15:10:29 +0200
+ umask 0026
+ test -e /var/lib/osh/hub/secret_key
+ pg_isready -h localhost
localhost:5432 - accepting connections
+ /usr/lib/python3.9/site-packages/osh/hub/manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, hub, kobo_auth, scan,
sessions, sites, stats, upload, waiving, xmlrpc
Running migrations:
  No migrations to apply.
+ '[' 2 -eq 1 ']'


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2275304

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202275304%23c5
--
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to