diff --git a/install b/install index b17afa1..bf19919 100644 --- a/install +++ b/install @@ -115,11 +115,18 @@ in_path() { return 1 # The path is not in $PATH } +upgrade() { + # Clear refs DB so that it can be re-populated on node start. + rad node db exec "DELETE FROM refs;" || echo "Refs database was not cleared." +} + get_started() { printf "\n" success - if ! is_authed; then + if is_authed; then + upgrade + else printf "\n" printf "Get started by creating your Radicle key pair with \033[35m\`rad auth\`\033[0m.\n" fi