mirror of
https://github.com/holos-run/holos.git
synced 2026-03-19 16:54:58 +00:00
Makes it easier to reset the database and give Gary and Nate access to the same organization I'm in so they can provide feedback.
17 lines
433 B
Bash
Executable File
17 lines
433 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -euo pipefail
|
|
TOPLEVEL="$(cd $(dirname "$0") && git rev-parse --show-toplevel)"
|
|
|
|
host="jeff.app.dev.k2.holos.run:443"
|
|
|
|
read -p "Reset all data in $host? " choice
|
|
case "$choice" in
|
|
y|Y) echo "proceeding...";;
|
|
*) exit 1;;
|
|
esac
|
|
|
|
|
|
grpcurl -H "x-oidc-id-token: $(holos token)" $host holos.v1alpha1.SystemService.DropTables
|
|
grpcurl -H "x-oidc-id-token: $(holos token)" $host holos.v1alpha1.SystemService.SeedDatabase
|