mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
include /etc/issue.net in status JSON to identify the base system
This commit is contained in:
parent
ee84eb762c
commit
8b393189c1
1 changed files with 4 additions and 0 deletions
|
@ -767,6 +767,10 @@ def setup_status_output(start_timestamp):
|
|||
'modifiedFiles': git_repo.git().ls_files(modified=True).split(),
|
||||
'untrackedFiles': git_repo.untracked_files,
|
||||
}
|
||||
etc_issue_net = '/etc/issue.net'
|
||||
if os.path.exists(etc_issue_net):
|
||||
with open(etc_issue_net) as fp:
|
||||
output[etc_issue_net] = fp.read(100).strip()
|
||||
write_running_status_json(output)
|
||||
return output
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue