Skip to content

Commit 596be66

Browse files
authored
Docs and output tinkering for commit check (#1191)
1 parent 3c060fc commit 596be66

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Please keep in mind to check the `.env` file for changes, when you perform an up
2424

2525
To get started with all the defaults, simply clone the repo and run `./install.sh` in your local check-out. Sentry uses Python 3 by default since December 4th, 2020 and Sentry 21.1.0 is the last version to support Python 2.
2626

27-
During the install, a prompt will ask if you want to create a user account. If you require that the install not be blocked by the prompt, run `./install.sh --no-user-prompt`.
27+
During the install, a prompt will ask if you want to create a user account. If you require that the install not be blocked by the prompt, run `./install.sh --skip-user-prompt`.
2828

2929
Please visit [our documentation](https://develop.sentry.dev/self-hosted/) for everything else.
3030

install/check-latest-commit.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
#!/bin/bash
1+
echo "${_group}Checking for latest commit ... "
22

33
# Checks if we are on latest commit from github if it is running from master branch
44
if [[ -d "../.git" && "${SKIP_COMMIT_CHECK:-0}" != 1 ]]; then
55
if [[ $(git branch | sed -n '/\* /s///p') == "master" ]]; then
66
if [[ $(git rev-parse HEAD) != $(git ls-remote $(git rev-parse --abbrev-ref @{u} | sed 's/\// /g') | cut -f1) ]]; then
7-
echo "Seems like you are not using the latest commit from self-hosted repository. Please pull the latest changes and try again.";
7+
echo "Seems like you are not using the latest commit from the self-hosted repository. Please pull the latest changes and try again, or suppress this check with --skip-commit-check.";
88
exit 1
99
fi
1010
fi
11+
else
12+
echo "skipped"
1113
fi
14+
15+
echo "${_endgroup}"

install/parse-cli.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@ show_help() {
44
cat <<EOF
55
Usage: $0 [options]
66
7-
Install Sentry with `docker compose`.
7+
Install Sentry with \`docker compose\`.
88
99
Options:
1010
-h, --help Show this message and exit.
11-
--no-user-prompt Skips the initial user creation prompt (ideal for non-interactive installs).
12-
--minimize-downtime EXPERIMENTAL: try to keep accepting events for as long as possible while upgrading.
13-
This will disable cleanup on error, and might leave your installation in partially upgraded state.
14-
This option might not reload all configuration, and is only meant for in-place upgrades.
11+
--minimize-downtime EXPERIMENTAL: try to keep accepting events for as long
12+
as possible while upgrading. This will disable cleanup
13+
on error, and might leave your installation in a
14+
partially upgraded state. This option might not reload
15+
all configuration, and is only meant for in-place
16+
upgrades.
17+
--skip-commit-check Skip the check for the latest commit when on the master
18+
branch of a \`self-hosted\` Git working copy.
19+
--skip-user-prompt Skip the initial user creation prompt (ideal for non-
20+
interactive installs).
1521
EOF
1622
}
1723

@@ -22,7 +28,8 @@ SKIP_COMMIT_CHECK="${SKIP_COMMIT_CHECK:-}"
2228
while (( $# )); do
2329
case "$1" in
2430
-h | --help) show_help; exit;;
25-
--no-user-prompt) SKIP_USER_PROMPT=1;;
31+
--no-user-prompt) SKIP_USER_PROMPT=1;; # deprecated
32+
--skip-user-prompt) SKIP_USER_PROMPT=1;;
2633
--minimize-downtime) MINIMIZE_DOWNTIME=1;;
2734
--skip-commit-check) SKIP_COMMIT_CHECK=1;;
2835
--) ;;

0 commit comments

Comments
 (0)