nixpkgs/pkgs/servers/nosql/influxdb2/update-influxdb2.sh
Dave Anderson 4de5d2b081
influxdb2: init at v2.0.2 (#104717)
Signed-off-by: David Anderson <dave@natulte.net>
2020-11-24 16:06:39 +01:00

17 lines
572 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=../../../../ -i bash -p wget yarn2nix
set -euo pipefail
if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
echo "Regenerates the Yarn dependency lock files for the influxdb UI."
echo "Usage: $0 <git release tag>"
exit 1
fi
INFLUXDB_SRC="https://raw.githubusercontent.com/influxdata/influxdb/$1"
wget "$INFLUXDB_SRC/ui/package.json" -O influx-ui-package.json
wget "$INFLUXDB_SRC/ui/yarn.lock" -O influx-ui-yarndeps.lock
yarn2nix --lockfile=influx-ui-yarndeps.lock > influx-ui-yarndeps.nix
rm influx-ui-yarndeps.lock