Clarify Gitea token prompt on install-rubix.sh
- Plain instructions where to get the token and that input is hidden
This commit is contained in:
+9
-2
@@ -49,13 +49,20 @@ prompt_token() {
|
|||||||
if [[ -n "${GITEA_TOKEN}" ]]; then
|
if [[ -n "${GITEA_TOKEN}" ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
echo "Gitea token (private rubix repo — same as registry / GITEA_REGISTRY_PULL_TOKEN):"
|
echo ""
|
||||||
|
echo "=== Gitea access token (required) ==="
|
||||||
|
echo "Paste your personal access token from gitea.dialer.work"
|
||||||
|
echo "(User Settings → Applications → Generate New Token)."
|
||||||
|
echo "Same token as Docker registry / GITEA_REGISTRY_PULL_TOKEN in .env later."
|
||||||
|
echo "Input is hidden — type or paste the token, then press Enter:"
|
||||||
|
echo ""
|
||||||
read -r -s GITEA_TOKEN
|
read -r -s GITEA_TOKEN
|
||||||
echo ""
|
echo ""
|
||||||
if [[ -z "${GITEA_TOKEN}" ]]; then
|
if [[ -z "${GITEA_TOKEN}" ]]; then
|
||||||
echo "Token is required." >&2
|
echo "[install-rubix] ERROR: token is required to download the private rubix release." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "[install-rubix] token received."
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare_system
|
prepare_system
|
||||||
|
|||||||
Reference in New Issue
Block a user