summaryrefslogtreecommitdiffstats
path: root/security/nss/automation/taskcluster/scripts/extend_task_graph.sh
blob: 5a3fb8d98bda98df3013b6e905504b16097af5eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

set -v -e -x

if [ $(id -u) = 0 ]; then
    # Drop privileges by re-running this script.
    exec su worker $0
fi

mkdir -p /home/worker/artifacts

# Install Node.JS dependencies.
cd nss/automation/taskcluster/graph/ && npm install

# Extend the task graph.
node lib/index.js