Host-deps installer and catalog hostname procedure
This commit is contained in:
commit
0031035048
21 changed files with 830 additions and 0 deletions
18
scripts/fetch.sh
Executable file
18
scripts/fetch.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
TYPE="${1:-}"
|
||||
LIST="$ROOT/repos.txt"
|
||||
if [[ -n "$TYPE" ]]; then
|
||||
LIST="$ROOT/types/$TYPE/repos.txt"
|
||||
[[ -f "$LIST" ]] || { echo "unknown type $TYPE" >&2; exit 1; }
|
||||
fi
|
||||
# OS packages + Node (+ nats-server for archive types) before clone.
|
||||
if [[ -n "$TYPE" ]]; then
|
||||
bash "$ROOT/scripts/host-deps.sh" --type "$TYPE"
|
||||
else
|
||||
bash "$ROOT/scripts/host-deps.sh"
|
||||
fi
|
||||
bash "$ROOT/scripts/clone.sh" "$LIST"
|
||||
bash "$ROOT/scripts/install-deps.sh"
|
||||
echo "fetch done type=${TYPE:-all}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue