File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22# SPDX-License-Identifier: PMPL-1.0
33# HAR Agent: GitHub Search
4- # Watches /tmp/ opsm-har-ingest/ for discovery tasks and searches GitHub API
4+ # Watches "$HYPATIA_TMPDIR/ opsm-har-ingest" / for discovery tasks and searches GitHub API
55
66set -euo pipefail
77
8- readonly QUEUE_DIR=" ${OPSM_HAR_QUEUE_DIR:-/ tmp / opsm-har-ingest} "
8+ readonly QUEUE_DIR=" ${OPSM_HAR_QUEUE_DIR:- " $HYPATIA_TMPDIR / opsm-har-ingest" } "
99readonly POLL_INTERVAL=5
1010readonly GITHUB_API=" https://api.github.com/search/repositories"
1111readonly CURL_CONNECT_TIMEOUT=10
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ create_user() {
5656}
5757
5858create_queue_dir () {
59- local queue_dir=" ${OPSM_HAR_QUEUE_DIR:-/ tmp / opsm-har-ingest} "
59+ local queue_dir=" ${OPSM_HAR_QUEUE_DIR:- " $HYPATIA_TMPDIR / opsm-har-ingest" } "
6060 log " Creating HAR queue directory at $queue_dir ..."
6161 mkdir -p " ${queue_dir} " /{results,processed}
6262 chown -R opsm:opsm " ${queue_dir} "
Original file line number Diff line number Diff line change 55
66set -euo pipefail
77
8- readonly QUEUE_DIR=" ${OPSM_HAR_QUEUE_DIR:-/ tmp / opsm-har-ingest} "
8+ readonly QUEUE_DIR=" ${OPSM_HAR_QUEUE_DIR:- " $HYPATIA_TMPDIR / opsm-har-ingest" } "
99readonly POLL_INTERVAL=5
1010readonly SWH_API=" https://archive.softwareheritage.org/api/1"
1111readonly WAYBACK_API=" https://archive.org/wayback/available"
You can’t perform that action at this time.
0 commit comments